]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG.cc: reduce scope of variable
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 22 Oct 2014 08:46:43 +0000 (10:46 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 26 Oct 2014 17:10:13 +0000 (18:10 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/osd/ReplicatedPG.cc

index dcef9a76ed90e91b1204cb875378a286a7f0480d..c1b24f4083729e959c5b5e55a6ecef75270af1de 100644 (file)
@@ -3752,11 +3752,11 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
    case CEPH_OSD_OP_NOTIFY:
       ++ctx->num_read;
       {
-       uint32_t ver; // obsolete
        uint32_t timeout;
         bufferlist bl;
 
        try {
+         uint32_t ver; // obsolete
           ::decode(ver, bp);
          ::decode(timeout, bp);
           ::decode(bl, bp);