Signed-off-by: Sage Weil <sage@redhat.com>
DECODE_FINISH(bl);
}
+bool SnapMapper::check(const hobject_t &hoid) const
+{
+ if (hoid.match(mask_bits, match)) {
+ return true;
+ }
+ derr << __func__ << " " << hoid << " mask_bits " << mask_bits
+ << " match 0x" << std::hex << match << std::dec << " is false"
+ << dendl;
+ return false;
+}
+
int SnapMapper::get_snaps(
const hobject_t &oid,
object_snaps *out)
MapCacher::Transaction<std::string, bufferlist> *t);
// True if hoid belongs in this mapping based on mask_bits and match
- bool check(const hobject_t &hoid) const {
- return hoid.match(mask_bits, match);
- }
+ bool check(const hobject_t &hoid) const;
int _remove_oid(
const hobject_t &oid, ///< [in] oid to remove