ceph_objectstore_tool.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2015-01-02 18:36:54 +01:00
parent a58446c41a
commit 78542f9a90

View File

@ -358,11 +358,10 @@ struct action_on_object_t {
int _action_on_all_objects_in_pg(ObjectStore *store, coll_t coll, action_on_object_t &action, bool debug)
{
unsigned LIST_AT_A_TIME = 100;
int r;
ghobject_t next;
while (!next.is_max()) {
vector<ghobject_t> list;
r = store->collection_list_partial(
int r = store->collection_list_partial(
coll,
next,
LIST_AT_A_TIME,