From: Matt Benjamin Date: Mon, 22 May 2017 21:37:11 +0000 (-0400) Subject: rgw_file: remove post-unlink lookup check X-Git-Tag: v12.1.0~10^2~19^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b3db617ddd6fa2477726b54828b6410b36989ac7;p=ceph.git rgw_file: remove post-unlink lookup check This could induce asserts in multi-nfs-gateway scenarios. Fixes: http://tracker.ceph.com/issues/20047 Signed-off-by: Matt Benjamin --- diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index e756c484417f9..dd6c1e8ed8f76 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -342,13 +342,6 @@ namespace rgw { fh_cache.remove(rgw_fh->fh.fh_hk.object, rgw_fh, RGWFileHandle::FHCache::FLAG_LOCK); -#if 1 /* XXX verify clear cache */ - fh_key fhk(rgw_fh->fh.fh_hk); - LookupFHResult tfhr = lookup_fh(fhk, RGWFileHandle::FLAG_LOCKED); - RGWFileHandle* nfh = get<0>(tfhr); - assert(!nfh); -#endif - if (! rc) { real_time t = real_clock::now(); parent->set_mtime(real_clock::to_timespec(t));