diff options
Diffstat (limited to 'src/common/hobject.h')
-rw-r--r-- | src/common/hobject.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/hobject.h b/src/common/hobject.h index 633e471dffc..4b6a33c6697 100644 --- a/src/common/hobject.h +++ b/src/common/hobject.h @@ -79,6 +79,11 @@ public: return ret; } + /// @return true iff the object should have a snapset in it's attrs + bool has_snapset() const { + return (snap == CEPH_NOSNAP) || (snap == CEPH_SNAPDIR); + } + /* Do not use when a particular hash function is needed */ explicit hobject_t(const sobject_t &o) : oid(o.oid), snap(o.snap), max(false), pool(-1) { |