]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/ceph-filestore-dump.cc: reduce scope of 'r' in export_files()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 15 May 2013 13:01:24 +0000 (15:01 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 16 May 2013 12:20:10 +0000 (14:20 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/tools/ceph-filestore-dump.cc

index 1c09de6c0a33f124e01bac663bbf3b052db14ff8..90a7d40cba15c6ffdc76f1a332996a4ff9791312 100644 (file)
@@ -623,10 +623,9 @@ int export_files(ObjectStore *store, coll_t coll)
 {
   vector<hobject_t> objects;
   hobject_t next;
-  int r = 0;
 
   while (!next.is_max()) {
-    r = store->collection_list_partial(coll, next, 200, 300, 0,
+    int r = store->collection_list_partial(coll, next, 200, 300, 0,
       &objects, &next);
     if (r < 0)
       return r;