We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ab75e8 commit 9279241Copy full SHA for 9279241
engines/ep/src/rocksdb-kvstore/rocksdb-kvstore.cc
@@ -49,9 +49,8 @@ void RocksDBKVStore::open() {
49
/* Use a listener to set the appropriate engine in the
50
* flusher threads RocksDB creates. We need the flusher threads to
51
* account for news/deletes against the appropriate bucket. */
52
- FlushStartListener* fsl =
53
- new FlushStartListener(ObjectRegistry::getCurrentEngine());
54
-
+ auto fsl = std::make_shared<FlushStartListener>(
+ ObjectRegistry::getCurrentEngine());
55
rdbOptions.listeners.emplace_back(fsl);
56
57
const std::string dbdir = configuration.getDBName();
0 commit comments