]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/Server.cc: reduce scope of variable
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 22 Oct 2014 08:25:47 +0000 (10:25 +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/mds/Server.cc

index 3f3408e1693a89b8dd7fbf38de3e8635bb511a0a..a0db9e97cef98b56ea2fe476e824b067b6e72d0e 100644 (file)
@@ -3720,7 +3720,6 @@ void Server::handle_set_vxattr(MDRequestRef& mdr, CInode *cur,
       name.find("ceph.dir.layout") == 0) {
     inode_t *pi;
     string rest;
-    int64_t old_pool = -1;
     if (name.find("ceph.dir.layout") == 0) {
       if (!cur->is_dir()) {
        reply_request(mdr, -EINVAL);
@@ -3794,7 +3793,7 @@ void Server::handle_set_vxattr(MDRequestRef& mdr, CInode *cur,
        return;
 
       pi = cur->project_inode();
-      old_pool = pi->layout.fl_pg_pool;
+      int64_t old_pool = pi->layout.fl_pg_pool;
       pi->add_old_pool(old_pool);
       pi->layout = layout;
       pi->ctime = mdr->get_op_stamp();