From e06e508df14a64f6a2d314c0a0b01e1da804d59c Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Thu, 11 Aug 2016 17:18:42 +0300 Subject: [PATCH] os/bluestore: fix improper local var variable in collection_list method causing StoreTest.Synthetic to fail. Signed-off-by: Igor Fedotov --- 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 b60d978f0b75c..dcbc005b92f1d 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -4056,6 +4056,7 @@ int BlueStore::collection_list( return -EOPNOTSUPP; int r = 0; + ghobject_t static_next; { RWLock::RLocker l(c->lock); KeyValueDB::Iterator it; @@ -4065,7 +4066,6 @@ int BlueStore::collection_list( string pend; bool temp; - ghobject_t static_next; if (!pnext) pnext = &static_next; -- 2.39.5