t = buf;
snprintf(t, end - t, "%.*X", (int)(sizeof(oid.hobj.get_hash())*2),
- (uint32_t)oid.get_nibblewise_key_u32());
+ oid.hobj.get_bitreverse_key_u32());
full_name += string(buf);
full_name.append(GHOBJECT_KEY_SEP_S);
}
if (out) {
- (*out) = ghobject_t(hobject_t(name, key, snap, hash, (int64_t)pool, ns),
+ (*out) = ghobject_t(hobject_t(name, key, snap,
+ hobject_t::_reverse_bits(hash),
+ (int64_t)pool, ns),
generation, shard_id);
- // restore reversed hash. see calculate_key
- out->hobj.set_hash(out->get_nibblewise_key());
}
if (out_coll) {