mirror of
https://github.com/typesense/typesense.git
synced 2025-05-18 04:32:38 +08:00
Add shared lock for store delete range.
This commit is contained in:
parent
ccee94375e
commit
8a751daa89
@ -334,6 +334,7 @@ public:
|
||||
}
|
||||
|
||||
rocksdb::Status delete_range(const std::string& begin_key, const std::string& end_key) {
|
||||
std::shared_lock lock(mutex);
|
||||
return db->DeleteRange(rocksdb::WriteOptions(), db->DefaultColumnFamily(), begin_key, end_key);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user