cluster: Save counters before we leave
This commit is contained in:
parent
cbe2b3910f
commit
e9c1c31682
1 changed files with 4 additions and 0 deletions
4
l2tpns.c
4
l2tpns.c
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue