]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/memstore: return empty list if offset overflows 7445/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 30 Jan 2016 09:02:08 +0000 (17:02 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 30 Jan 2016 09:29:45 +0000 (17:29 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/memstore/MemStore.cc

index 2643c8f0c21c5a212097f249a698e789dd7b993a..148791e7c5a26c7a823dfa3af72634c2f09173f2 100644 (file)
@@ -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;
 }