mirror of
https://github.com/ceph/ceph
synced 2024-12-17 00:46:05 +00:00
Merge pull request #13703 from linuxbox2/wip-is-linked
rgw_file: use fh_hook::is_linked() to check residence verified by hand f23
This commit is contained in:
commit
2bcd9d7dde
@ -813,8 +813,8 @@ namespace rgw {
|
||||
lsubdout(fs->get_context(), rgw, 17)
|
||||
<< __func__ << " " << *this
|
||||
<< dendl;
|
||||
/* if !deleted, then object still in fh_cache */
|
||||
if (! deleted()) {
|
||||
/* remove if still in fh_cache */
|
||||
if (fh_hook.is_linked()) {
|
||||
fs->fh_cache.remove(fh.fh_hk.object, this, FHCache::FLAG_LOCK);
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user