Skip to content

Commit

Permalink
Fix unstable nebula_store_test(vesoft-inc#664) (vesoft-inc#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangleptr authored and dutor committed Jul 19, 2019
1 parent 403c442 commit 0b7a65b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/kvstore/NebulaStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ namespace kvstore {
NebulaStore::~NebulaStore() {
workers_->stop();
workers_->wait();
spaces_.clear();
LOG(INFO) << "Stop the raft service...";
raftService_->stop();
raftService_->waitUntilStop();
spaces_.clear();
LOG(INFO) << "~NebulaStore()";
}

Expand Down
4 changes: 3 additions & 1 deletion src/kvstore/RocksEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ class RocksEngine : public KVEngine {
std::shared_ptr<rocksdb::MergeOperator> mergeOp = nullptr,
std::shared_ptr<rocksdb::CompactionFilterFactory> cfFactory = nullptr);

~RocksEngine() = default;
~RocksEngine() {
LOG(INFO) << "Release rocksdb on " << dataPath_;
}

const char* getDataRoot() const override {
return dataPath_.c_str();
Expand Down

0 comments on commit 0b7a65b

Please sign in to comment.