mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
os/memstore: no magic len=0 to fiemap
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
3c4eddb5d9
commit
ccd65d2739
@ -329,8 +329,6 @@ int MemStore::fiemap(coll_t cid, const ghobject_t& oid,
|
||||
return -ENOENT;
|
||||
map<uint64_t, uint64_t> m;
|
||||
size_t l = len;
|
||||
if (offset == 0 && len == 0)
|
||||
l = o->get_size();
|
||||
if (offset + l > o->get_size())
|
||||
l = o->get_size() - offset;
|
||||
if (offset >= o->get_size())
|
||||
|
Loading…
Reference in New Issue
Block a user