diff --git a/src/storage/storage.cc b/src/storage/storage.cc index 2eead08ace6..729c9682afc 100644 --- a/src/storage/storage.cc +++ b/src/storage/storage.cc @@ -868,9 +868,9 @@ Status Storage::BeginTxn() { // The EXEC command is exclusive and shouldn't have multi transaction at the same time, // so it's fine to reset the global write batch without any lock. is_txn_mode_ = true; - txn_write_batch_ = - std::make_unique(rocksdb::BytewiseComparator() /*default backup_index_comparator */, - 0 /* default reserved_bytes*/, GetWriteBatchMaxBytes()); + txn_write_batch_ = std::make_unique( + /*backup_index_comparator=*/rocksdb::BytewiseComparator(), + /*reserved_bytes=*/0, /*overwrite_key=*/true, /*max_bytes=*/GetWriteBatchMaxBytes()); return Status::OK(); }