]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kstore: decrease max listed object number from 5 to 1
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 14 Jan 2016 06:47:07 +0000 (14:47 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 14 Jan 2016 06:47:07 +0000 (14:47 +0800)
For the sake of performance.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/kstore/KStore.cc

index bb4305a71edf46d117ae2ed73df2add224135204..4717d2cb215aebeec7341ccf9d4bf8a6747ed324 100644 (file)
@@ -1710,7 +1710,7 @@ bool KStore::collection_empty(coll_t cid)
   dout(15) << __func__ << " " << cid << dendl;
   vector<ghobject_t> ls;
   ghobject_t next;
-  int r = collection_list(cid, ghobject_t(), ghobject_t::get_max(), true, 5,
+  int r = collection_list(cid, ghobject_t(), ghobject_t::get_max(), true, 1,
                          &ls, &next);
   if (r < 0)
     return false;  // fixme?