Add log for snapshot on exit

This commit is contained in:
Antonio Andelic 2022-08-04 13:12:24 +00:00
parent 8094f33078
commit 10d7259c2b

View File

@ -385,6 +385,7 @@ void KeeperStateMachine::create_snapshot(nuraft::snapshot & s, nuraft::async_res
if (keeper_context->server_state == KeeperContext::Phase::SHUTDOWN)
{
LOG_INFO(log, "Creating a snapshot during shutdown because 'create_snapshot_on_exit' is enabled.");
snapshot_task.create_snapshot(std::move(snapshot_task.snapshot));
return;
}