mirror of
https://github.com/ceph/ceph
synced 2024-12-27 22:13:28 +00:00
FileStore: return error if get_index fails in lfn_open
(*index).index is NULL if get_index fails, need to return error in this case. Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
This commit is contained in:
parent
4280d004fb
commit
8811df3e6d
@ -242,6 +242,10 @@ int FileStore::lfn_open(coll_t cid,
|
||||
}
|
||||
if (!((*index).index)) {
|
||||
r = get_index(cid, index);
|
||||
if (r < 0) {
|
||||
dout(10) << __func__ << " could not get index r = " << r << dendl;
|
||||
return r;
|
||||
}
|
||||
} else {
|
||||
need_lock = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user