diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index 695ca731ff8..b70a07731c1 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -522,6 +522,12 @@ public: register_on_applied(new ContainerContext(_complete)); register_on_commit(new ContainerContext(_complete)); } + bool has_contexts() const { + return + !on_commit.empty() || + !on_applied.empty() || + !on_applied_sync.empty(); + } static void collect_contexts( vector& t,