zyearn commented on issue #1305:
URL: https://github.com/apache/incubator-brpc/issues/1305#issuecomment-747737645


   > 而使用ZRANGE的时候则相反,AddCommandByComponents传入butil::StringPiece凑成ZRANGE key 0 
-1会得不到结果,
   
   
用StringPiece的时候需要原始的string是存在的,而这里StringPiece的参数是临时构造的string,在用parts的时候临时的string已经析构了。


----------------------------------------------------------------
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.

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to