Skip to content

Commit

Permalink
rgw_file: fix missing unlock in unlink
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/19435

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
(cherry picked from commit cb6808a)
  • Loading branch information
Gui Hecheng authored and smithfarm committed Jul 4, 2017
1 parent 34553f9 commit e03a5cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rgw/rgw_file.cc
Expand Up @@ -260,6 +260,8 @@ namespace rgw {
/* for the duration of our cache timer, trust positive
* child cache */
if (rgw_fh->has_children()) {
rgw_fh->mtx.unlock();
unref(rgw_fh);
return(-ENOTEMPTY);
}
oname += "/";
Expand Down

0 comments on commit e03a5cb

Please sign in to comment.