Fix build

This commit is contained in:
Antonio Andelic 2024-03-22 15:17:28 +01:00
parent 5beabe071c
commit 6a681e074f
2 changed files with 3 additions and 1 deletions

View File

@ -143,7 +143,7 @@ struct ContextSharedPart : boost::noncopyable
mutable ThrottlerPtr local_read_throttler; /// A server-wide throttler for local IO reads
mutable ThrottlerPtr local_write_throttler; /// A server-wide throttler for local IO writes
///
mutable std::mutex keeper_dispatcher_mutex;
mutable std::shared_ptr<KeeperDispatcher> keeper_dispatcher TSA_GUARDED_BY(keeper_dispatcher_mutex);

View File

@ -435,6 +435,7 @@ struct ContextSharedPart : boost::noncopyable
~ContextSharedPart()
{
#if USE_NURAFT
if (keeper_dispatcher)
{
try
@ -446,6 +447,7 @@ struct ContextSharedPart : boost::noncopyable
tryLogCurrentException(__PRETTY_FUNCTION__);
}
}
#endif
/// Wait for thread pool for background reads and writes,
/// since it may use per-user MemoryTracker which will be destroyed here.