Skip to content

Commit

Permalink
Feature flag the cstack_sync call
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Liu <shuntian.liu2@cloud.com>
  • Loading branch information
Vincent-lau committed Jul 10, 2024
1 parent 3dc79e0 commit cca43a4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ocaml/xapi/xapi_cluster.ml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ let pool_resync ~__context ~self:_ =
find or create a matching cluster_host which is also enabled *)

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

0 comments on commit cca43a4

Please sign in to comment.