]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/tools/store_nbd/fs_driver: collid should be the msb
authorSamuel Just <sjust@redhat.com>
Fri, 27 Aug 2021 02:10:26 +0000 (19:10 -0700)
committerSamuel Just <sjust@redhat.com>
Fri, 27 Aug 2021 22:41:48 +0000 (15:41 -0700)
This way, objects in a collection will sort together.  Probably
a typo.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/tools/store_nbd/fs_driver.cc

index 24f954ea9c05ff3eb1df7b6e0f6f5b7825cbfaaa..f720ac0eb1c9dd978425ce3e457fc3c2860915b3 100644 (file)
@@ -22,7 +22,7 @@ FSDriver::offset_mapping_t FSDriver::map_offset(off_t offset)
     ghobject_t(
       shard_id_t::NO_SHARD,
       0,
-      (objid << 16) | collid,
+      (collid << 16) | objid,
       "",
       "",
       0,