bool max;
uint32_t nibblewise_key_cache;
uint32_t hash_reverse_bits;
+public:
static const int64_t POOL_META = -1;
static const int64_t POOL_TEMP_START = -2; // and then negative
friend class spg_t; // for POOL_TEMP_START
unsigned get_split_bits(unsigned pg_num) const;
bool contains(int bits, const ghobject_t& oid) {
- return oid.match(bits, ps());
+ return
+ ((int64_t)m_pool == oid.hobj.pool ||
+ hobject_t::POOL_TEMP_START-(int64_t)m_pool == oid.hobj.pool) &&
+ oid.match(bits, ps());
}
bool contains(int bits, const hobject_t& oid) {
- return oid.match(bits, ps());
+ return
+ ((int64_t)m_pool == oid.pool ||
+ hobject_t::POOL_TEMP_START-(int64_t)m_pool == oid.pool) &&
+ oid.match(bits, ps());
}
hobject_t get_hobj_start() const;