]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_file: fix double unref on rgw_fh for rename
authorGui Hecheng <guihecheng@cmss.chinamobile.com>
Wed, 15 Mar 2017 07:01:05 +0000 (15:01 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 4 Jul 2017 07:37:38 +0000 (09:37 +0200)
Skip unref after unlink to fix the problem.

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
(cherry picked from commit bff228734c73b536d2482e2e2fa4ad38b206ebff)

src/rgw/rgw_file.cc

index b96945b04414c9165082e2d7f3a1e4b21b37bbac..7e2d492c70cf4c9f963f82536c8f3bed684d3402 100644 (file)
@@ -407,7 +407,7 @@ namespace rgw {
            << dendl;
        }
       }
-      break;
+      goto out;
       default:
        abort();
       } /* switch */