From fda2efe8c70a213b9b8aeff7d492eced1bb6b217 Mon Sep 17 00:00:00 2001 From: Brian Christiansen <brian@schedmd.com> Date: Tue, 7 Jun 2016 14:10:54 -0600 Subject: [PATCH] Always push fed state after dbd update The update could be from a controller registering which wouldn't have the fed_name set yet. --- src/plugins/accounting_storage/mysql/as_mysql_cluster.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/accounting_storage/mysql/as_mysql_cluster.c b/src/plugins/accounting_storage/mysql/as_mysql_cluster.c index f266df459b2..c1a20a47fe8 100644 --- a/src/plugins/accounting_storage/mysql/as_mysql_cluster.c +++ b/src/plugins/accounting_storage/mysql/as_mysql_cluster.c @@ -607,8 +607,10 @@ extern List as_mysql_modify_clusters(mysql_conn_t *mysql_conn, uint32_t uid, xfree(vals); xfree(query); return ret_list; - } else if (cluster->fed.name) - as_mysql_add_feds_to_update_list(mysql_conn); + } + + /* push out changes since the cluster could have just registered */ + as_mysql_add_feds_to_update_list(mysql_conn); xfree(query); end_it: -- GitLab