Thanks, Get it 2017-02-13 13:38 GMT+08:00 xinxin shu <xinxin.shu5040@xxxxxxxxx>: > pls refer to https://github.com/ceph/ceph/blob/master/src/kv/LevelDBStore.cc#L71 > > 2017-02-13 12:41 GMT+08:00 刘畅 <liuchang0812@xxxxxxxxx>: >> Thanks xinxin >> >> Where's the related code? >> >> 发自我的 iPhone >> >>> 在 2017年2月13日,11:58,xinxin shu <xinxin.shu5040@xxxxxxxxx> 写道: >>> >>> leveldb is opened with default block size (4K) with setting >>> leveldb_block_size to 0 >>> >>> 2017-02-13 11:34 GMT+08:00 liuchang0812 <liuchang0812@xxxxxxxxx>: >>>> I saw that we use 0 as leveldb_block_size [1] as following: >>>> >>>> OPTION(leveldb_block_size, OPT_U64, 0) // leveldb block size >>>> >>>> It seems that leveldb don't process 0 as a special value. >>>> >>>> Any reasons for this configuration? why not 4KB or 32KB? >>>> >>>> >>>> >>>> [1] https://github.com/ceph/ceph/blob/master/src/common/config_opts.h#L887 >>>> -- >>>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in >>>> the body of a message to majordomo@xxxxxxxxxxxxxxx >>>> More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html