mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-14 12:12:21 +00:00
Add forgotten mutex lock on RocksDb::end_snapshot
This commit is contained in:
parent
db1ba2ea82
commit
8714477ccb
1 changed files with 1 additions and 0 deletions
|
@ -287,6 +287,7 @@ void RocksDbSnapshotStatistics::begin_snapshot(const rocksdb::Snapshot *snapshot
|
|||
}
|
||||
|
||||
void RocksDbSnapshotStatistics::end_snapshot(const rocksdb::Snapshot *snapshot) {
|
||||
auto lock = std::unique_lock<std::mutex>(mutex_);
|
||||
auto id = reinterpret_cast<std::uintptr_t>(snapshot);
|
||||
auto it = id_to_ts_.find(id);
|
||||
CHECK(it != id_to_ts_.end());
|
||||
|
|
Loading…
Reference in a new issue