cluster: Save counters before we leave

This commit is contained in:
Samuel Thibault 2024-03-12 19:44:59 +01:00
parent cbe2b3910f
commit e9c1c31682

View file

@ -4557,7 +4557,11 @@ static void mainloop(void)
// Are we the master and shutting down??
if (config->cluster_iam_master)
{
if (*config->accounting_dir)
dump_acct_info(1); // Save counters so far before we leave
cluster_heartbeat(); // Flush any queued changes..
}
// Ok. Notify everyone we're shutting down. If we're
// the master, this will force an election.