From: Greg Farnum Date: Mon, 21 Oct 2013 21:11:28 +0000 (-0700) Subject: common: add an hobject_t::is_min() function X-Git-Tag: v0.72-rc1~10^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f0f67507dd8800dda552037eecaef6130740fc96;p=ceph.git common: add an hobject_t::is_min() function Signed-off-by: Greg Farnum --- diff --git a/src/common/hobject.h b/src/common/hobject.h index a769ad060d92..edaf04a301fd 100644 --- a/src/common/hobject.h +++ b/src/common/hobject.h @@ -118,6 +118,13 @@ public: bool is_max() const { return max; } + bool is_min() const { + // this needs to match how it's constructed + return snap == 0 && + hash == 0 && + !max && + pool == -1; + } static uint32_t _reverse_nibbles(uint32_t retval) { // reverse nibbles