From f964067da655a3092b0ae1db86792835c202424f Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 3 Nov 2021 00:57:20 +0300 Subject: [PATCH] Store name of lite actors. --- tdactor/td/actor/impl/ActorInfo.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tdactor/td/actor/impl/ActorInfo.h b/tdactor/td/actor/impl/ActorInfo.h index 226490af9..c20bbeb2e 100644 --- a/tdactor/td/actor/impl/ActorInfo.h +++ b/tdactor/td/actor/impl/ActorInfo.h @@ -41,10 +41,10 @@ inline void ActorInfo::init(int32 sched_id, Slice name, ObjectPool::O if (!is_lite) { context_ = Scheduler::context()->this_ptr_.lock(); VLOG(actor) << "Set context " << context_.get() << " for " << name; -#ifdef TD_DEBUG - name_ = name.str(); -#endif } +#ifdef TD_DEBUG + name_.assign(name.data(), name.size()); +#endif actor_->init(std::move(this_ptr)); deleter_ = deleter;