From: Igor Fedotov Date: Thu, 11 Aug 2016 14:18:42 +0000 (+0300) Subject: os/bluestore: fix improper local var variable in collection_list method causing Store... X-Git-Tag: ses5-milestone5~147^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e06e508df14a64f6a2d314c0a0b01e1da804d59c;p=ceph.git os/bluestore: fix improper local var variable in collection_list method causing StoreTest.Synthetic to fail. Signed-off-by: Igor Fedotov --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index b60d978f0b75..dcbc005b92f1 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;