]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: note 1st existed coll instead of 1st coll 11986/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 15 Nov 2016 09:03:48 +0000 (17:03 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 15 Nov 2016 09:08:40 +0000 (17:08 +0800)
We store the coll mainly for cache trim and we shall try
our best to do it whenever it is possible.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index 6a8a0dc420013299039a27f3b2e92698b7b7edab..123c8079c1fd5ef7bc9a0902551ee9291cb007d0 100644 (file)
@@ -7023,7 +7023,7 @@ void BlueStore::_txc_add_transaction(TransContext *txc, Transaction *t)
     cvec[j] = _get_collection(*p);
 
     // note first collection we reference
-    if (!j && !txc->first_collection)
+    if (!txc->first_collection)
       txc->first_collection = cvec[j];
   }
   vector<OnodeRef> ovec(i.objects.size());