Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonYao287 committed Jan 28, 2025
1 parent 72b36d0 commit 4157f7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/lib/logstore/log_dev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ LogDev::~LogDev() {
m_id_logstore_map.clear();
}

m_log_records = nullptr;
m_logdev_meta.reset();
m_log_idx.store(0);
m_pending_flush_size.store(0);
Expand Down Expand Up @@ -157,6 +156,8 @@ void LogDev::stop() {
if (!get_pending_request_num()) break;
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
}

m_log_records.reset();
}

void LogDev::destroy() {
Expand Down
6 changes: 2 additions & 4 deletions src/lib/logstore/log_store_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,8 @@ void LogStoreService::stop() {
}

LogStoreService::~LogStoreService() {
{
folly::SharedMutexWritePriority::WriteHolder holder(m_logdev_map_mtx);
m_id_logdev_map.clear();
}
folly::SharedMutexWritePriority::WriteHolder holder(m_logdev_map_mtx);
m_id_logdev_map.clear();
}

logdev_id_t LogStoreService::get_next_logdev_id() {
Expand Down

0 comments on commit 4157f7e

Please sign in to comment.