Skip to content

Commit cca43a4

Browse files
committed
Feature flag the cstack_sync call
Signed-off-by: Vincent Liu <shuntian.liu2@cloud.com>
1 parent 3dc79e0 commit cca43a4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ocaml/xapi/xapi_cluster.ml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ let pool_resync ~__context ~self:_ =
296296
find or create a matching cluster_host which is also enabled *)
297297

298298
let cstack_sync ~__context ~self =
299-
debug "%s: sync db data with cluster stack" __FUNCTION__ ;
300-
Watcher.on_corosync_update ~__context ~cluster:self
301-
["Updates due to cluster api calls"]
299+
if Xapi_cluster_helpers.cluster_health_enabled ~__context then (
300+
debug "%s: sync db data with cluster stack" __FUNCTION__ ;
301+
Watcher.on_corosync_update ~__context ~cluster:self
302+
["Updates due to cluster api calls"]
303+
)

0 commit comments

Comments
 (0)