git-hulk commented on PR #594:
URL:
https://github.com/apache/incubator-kvrocks/pull/594#issuecomment-1136903327
> ```
> rocksdb::Status List::Pop(const Slice &user_key, bool left, std::string
*elem) {
> std::vector<std::string> elems;
> auto s = PopMulti(user_key, left, 1, &elems);
> if (!s.ok()) return s;
> *elem = elems[0];
> return rocksdb::Status::OK();
> }
> ```
>
> I think this idea is better. WDYT @git-hulk
Yes, I think that retrieves multi elements in `pop` is a bit weird, it would
be better to use `popMulti` to implement `pop`.
--
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]