]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/HashIndex.cc: reduce scope of a local variable
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 15 May 2013 12:05:40 +0000 (14:05 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 16 May 2013 12:16:24 +0000 (14:16 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/os/HashIndex.cc

index d5f2d74080c57f87d392d6c07f647c6d070cdb98..56b2c017d03896293fe5cea31ecb492d7b6a7e48 100644 (file)
@@ -298,9 +298,9 @@ int HashIndex::_lookup(const hobject_t &hoid,
   vector<string> path_comp;
   get_path_components(hoid, &path_comp);
   vector<string>::iterator next = path_comp.begin();
-  int r, exists;
+  int exists;
   while (1) {
-    r = path_exists(*path, &exists);
+    int r = path_exists(*path, &exists);
     if (r < 0)
       return r;
     if (!exists) {