]> git.apps.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)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 28 Mar 2017 19:07:57 +0000 (15:07 -0400)
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 b87c388cb665a1fd5be361c9edb35579f9a3c05e..5423bebd30a841392a549231062e3b6271fdd9b5 100644 (file)
@@ -387,7 +387,7 @@ namespace rgw {
            << dendl;
        }
       }
-      break;
+      goto out;
       default:
        abort();
       } /* switch */