os/memstore: no magic len=0 to fiemap

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-01-18 12:50:00 -05:00
parent 3c4eddb5d9
commit ccd65d2739

View File

@ -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())