From: xie xingguo Date: Tue, 15 Nov 2016 09:03:48 +0000 (+0800) Subject: os/bluestore: note 1st existed coll instead of 1st coll X-Git-Tag: v11.1.0~289^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=685137f2d0a3d8631c1cb41ae440246dd47fdd89;p=ceph.git os/bluestore: note 1st existed coll instead of 1st coll 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 --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 6a8a0dc42001..123c8079c1fd 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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 ovec(i.objects.size());