From 685137f2d0a3d8631c1cb41ae440246dd47fdd89 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Tue, 15 Nov 2016 17:03:48 +0800 Subject: [PATCH] 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 --- src/os/bluestore/BlueStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 6a8a0dc420013..123c8079c1fd5 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()); -- 2.39.5