You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pegasus.apache.org by GitBox <gi...@apache.org> on 2020/12/16 06:05:37 UTC
[GitHub] [incubator-pegasus] levy5307 commented on a change in pull request #656: refactor: use rocksdb_wrapper::write_batch_put to reimplement check_and_set
levy5307 commented on a change in pull request #656:
URL: https://github.com/apache/incubator-pegasus/pull/656#discussion_r544004868
##########
File path: src/server/pegasus_write_service_impl.h
##########
@@ -349,13 +350,13 @@ class pegasus_write_service::impl : public dsn::replication::replica_base
decree, dsn::string_view(), dsn::string_view(), 0);
}
if (resp.error) {
- _rocksdb_wrapper->clear_up_write_batch();
+ rocksdb_write_batch_cleaner cleaner(_rocksdb_wrapper.get());
Review comment:
OK, I got what you mean.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org
For additional commands, e-mail: dev-help@pegasus.apache.org