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

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

index d51a1c0ebf83463e8c1d035c35494b2c15f4af79..14e4286da5fe1a33092784f5edc79edeea7fb27d 100644 (file)
@@ -2704,7 +2704,7 @@ bool BlueStore::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?