Skip to content

Commit

Permalink
code review from twice, thanks a lot
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-binbin committed Aug 3, 2023
1 parent ecd0f5e commit 2ea7000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/redis_string.cc
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ rocksdb::Status String::MSet(const std::vector<StringPair> &pairs, uint64_t ttl,
batch->Put(metadata_cf_handle_, ns_key, bytes);
std::optional<LockGuard> guard;
if (lock) {
guard(storage_->GetLockManager(), ns_key);
guard.emplace(storage_->GetLockManager(), ns_key);
}
auto s = storage_->Write(storage_->DefaultWriteOptions(), batch->GetWriteBatch());
if (!s.ok()) return s;
Expand Down

0 comments on commit 2ea7000

Please sign in to comment.