Skip to content

Commit

Permalink
Merge pull request #32 from project-tsurugi/logging-shutdown-start-end
Browse files Browse the repository at this point in the history
add logging at start/end of datastore::shutdown()
  • Loading branch information
ban-nobuhiro committed Apr 7, 2023
2 parents 920ea33 + 8ddf062 commit 464246a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/limestone/datastore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,12 @@ void datastore::add_snapshot_callback(std::function<void(write_version_type)> ca
}

std::future<void> datastore::shutdown() noexcept {
VLOG_LP(log_info) << "start";
state_ = state::shutdown;
return std::async(std::launch::async, []{ std::this_thread::sleep_for(std::chrono::microseconds(100000)); });
return std::async(std::launch::async, []{
std::this_thread::sleep_for(std::chrono::microseconds(100000));
VLOG(log_info) << "/:limestone:datastore:shutdown end";
});
}

// old interface
Expand Down

0 comments on commit 464246a

Please sign in to comment.