julic20s commented on PR #1901:
URL: https://github.com/apache/kvrocks/pull/1901#issuecomment-1822318909

   Thanks, I get it. The actual cause is that I define a default move 
assignment function, which cause a dangling pointer.
   ________________________________
   发件人: hulk ***@***.***>
   发送时间: 2023年11月22日 16:30
   收件人: apache/kvrocks ***@***.***>
   抄送: julic20s ***@***.***>; Mention ***@***.***>
   主题: Re: [apache/kvrocks] Support for the BITFIELD command (PR #1901)
   
   
   @julic20s<https://github.com/julic20s> Guess not, you should use 
std::optional<LockGuard> instead of LockGuard directly since the LockGuard 
constructor will lock the mutex, and if you use LockGuard = default, it won't 
lock the mutex at all.
   
   ―
   Reply to this email directly, view it on 
GitHub<https://github.com/apache/kvrocks/pull/1901#issuecomment-1822314669>, or 
unsubscribe<https://github.com/notifications/unsubscribe-auth/AXIOCT53WTNNJLK4GF5RTLTYFWZ2VAVCNFSM6AAAAAA7TG4R22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRSGMYTINRWHE>.
   You are receiving this because you were mentioned.Message ID: ***@***.***>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to