]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd/internal.cc: reduce scope of 'int r'
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 28 Feb 2013 18:41:37 +0000 (19:41 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 28 Feb 2013 18:41:37 +0000 (19:41 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/librbd/internal.cc

index df73a94050a9980a10c212e8f0d5ebec1a2a0556..0a98a56578e540fa9945ff980eaf77ff4fd21382 100644 (file)
@@ -1574,7 +1574,6 @@ reprotect_and_return_err:
     int refresh_seq = ictx->refresh_seq;
     ictx->refresh_lock.Unlock();
 
-    int r;
     ::SnapContext new_snapc;
     bool new_snap = false;
     vector<string> snap_names;
@@ -1585,6 +1584,7 @@ reprotect_and_return_err:
     {
       RWLock::WLocker l(ictx->snap_lock);
       {
+        int r;
        RWLock::WLocker l2(ictx->parent_lock);
        ictx->lockers.clear();
        if (ictx->old_format) {