From: xie xingguo Date: Sat, 30 Jan 2016 09:02:08 +0000 (+0800) Subject: os/memstore: return empty list if offset overflows X-Git-Tag: v10.0.4~90^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F7445%2Fhead;p=ceph.git os/memstore: return empty list if offset overflows Signed-off-by: xie xingguo --- diff --git a/src/os/memstore/MemStore.cc b/src/os/memstore/MemStore.cc index 2643c8f0c21..148791e7c5a 100644 --- a/src/os/memstore/MemStore.cc +++ b/src/os/memstore/MemStore.cc @@ -366,8 +366,8 @@ int MemStore::fiemap(coll_t cid, const ghobject_t& oid, l = o->get_size() - offset; if (offset >= o->get_size()) goto out; - out: m[offset] = l; + out: ::encode(m, bl); return 0; }