]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/filestore: implement collection_set_bits
authorSage Weil <sage@redhat.com>
Tue, 28 Mar 2017 21:40:17 +0000 (17:40 -0400)
committerSage Weil <sage@redhat.com>
Wed, 29 Mar 2017 02:23:43 +0000 (22:23 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/filestore/FileStore.cc

index eb3a2885110d3f071162f1598e4453e16e22142c..e14c72a6d00d91d513f2143203edba26d65c8f74 100644 (file)
@@ -2748,6 +2748,14 @@ void FileStore::_do_transaction(
       }
       break;
 
+    case Transaction::OP_COLL_SET_BITS:
+      {
+       const coll_t &cid = i.get_cid(op->cid);
+       int bits = op->split_bits;
+       r = _collection_set_bits(cid, bits);
+      }
+      break;
+
     case Transaction::OP_COLL_HINT:
       {
         const coll_t &cid = i.get_cid(op->cid);