acelyc111 commented on a change in pull request #669:
URL: https://github.com/apache/incubator-pegasus/pull/669#discussion_r552336804
##########
File path: src/server/rocksdb_wrapper.cpp
##########
@@ -160,6 +160,25 @@ int rocksdb_wrapper::write(int64_t decree)
return status.code();
}
+int rocksdb_wrapper::write_batch_delete(int64_t decree, dsn::string_view
raw_key)
+{
+ FAIL_POINT_INJECT_F("db_write_batch_delete",
+ [](dsn::string_view) -> int { return
FAIL_DB_WRITE_BATCH_DELETE; });
+
+ rocksdb::Status s = _write_batch->Delete(utils::to_rocksdb_slice(raw_key));
+ if (dsn_unlikely(!s.ok())) {
+ dsn::blob hash_key, sort_key;
+ pegasus_restore_key(dsn::blob(raw_key.data(), 0, raw_key.size()),
hash_key, sort_key);
+ derror_rocksdb("WriteBatchDelete",
Review comment:
```suggestion
derror_rocksdb("write_batch_delete",
```
----------------------------------------------------------------
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]