From: Haomai Wang Date: Mon, 16 Jun 2014 06:30:57 +0000 (+0800) Subject: Make KeyValueStore not use expected_write_size X-Git-Tag: v0.83~44^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=18f58074c0b7c850fd45f284572e57816d6f7d3b;p=ceph.git Make KeyValueStore not use expected_write_size expected_write_size in set_alloc_hint isn't the mean of name, now it's just the size of object. It's not suitable for KeyValueStore to set strip size. Signed-off-by: Haomai Wang --- diff --git a/src/os/KeyValueStore.cc b/src/os/KeyValueStore.cc index 969173eeb092..c28ec54da375 100644 --- a/src/os/KeyValueStore.cc +++ b/src/os/KeyValueStore.cc @@ -3001,8 +3001,8 @@ int KeyValueStore::_set_alloc_hint(coll_t cid, const ghobject_t& oid, // Now only consider to change "strip_size" when the object is blank, // because set_alloc_hint is expected to be very lightweight if (blank) { - header->strip_size = MIN(expected_write_size, m_keyvaluestore_max_expected_write_size); - dout(20) << __func__ << " hint " << header->strip_size << " success" << dendl; + // header->strip_size = MIN(expected_write_size, m_keyvaluestore_max_expected_write_size); + // dout(20) << __func__ << " hint " << header->strip_size << " success" << dendl; } dout(10) << __func__ << "" << cid << "/" << oid << " object_size "