From: Samuel Just Date: Thu, 26 Sep 2013 19:31:35 +0000 (-0700) Subject: common/hobject: add is_degenerate method X-Git-Tag: v0.71~24^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e73ec48371fffbb16b03e57b157e35c087e0b342;p=ceph.git common/hobject: add is_degenerate method Signed-off-by: Samuel Just --- diff --git a/src/common/hobject.h b/src/common/hobject.h index e483b664347d..0a140c3089b8 100644 --- a/src/common/hobject.h +++ b/src/common/hobject.h @@ -251,6 +251,10 @@ public: return get_filestore_key_u32(); } + bool is_degenerate() const { + return generation == NO_GEN && shard_id == NO_SHARD; + } + // maximum sorted value. static ghobject_t get_max() { ghobject_t h(hobject_t::get_max());