From: Sage Weil Date: Tue, 3 Apr 2018 01:57:04 +0000 (-0500) Subject: os/ObjectStore: add has_contexts() X-Git-Tag: v13.1.0~390^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b85a24acd18d23dfd4122fbf943f44ea0ff240c7;p=ceph.git os/ObjectStore: add has_contexts() Signed-off-by: Sage Weil --- diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index 695ca731ff8b..b70a07731c19 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,