]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_file: fix double unref on rgw_fh for rename 13988/head
authorGui Hecheng <guihecheng@cmss.chinamobile.com>
Wed, 15 Mar 2017 07:01:05 +0000 (15:01 +0800)
committerGui Hecheng <guihecheng@cmss.chinamobile.com>
Fri, 17 Mar 2017 01:47:02 +0000 (09:47 +0800)
Skip unref after unlink to fix the problem.

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
src/rgw/rgw_file.cc

index f1d1ef1649d4985bbf56289b31e2ec333695f69b..5d1ec3e2f7a0550327d81f80f8b64625b64362da 100644 (file)
@@ -396,7 +396,7 @@ namespace rgw {
            << dendl;
        }
       }
-      break;
+      goto out;
       default:
        abort();
       } /* switch */