]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: shrink buffer_map key into uint32_t 12850/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 10 Jan 2017 03:23:52 +0000 (11:23 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 10 Jan 2017 12:45:02 +0000 (20:45 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.h

index 1c8f836a76062dfebf7f20014e6161a7ac000a93..96dc5bae05ef5cc889b55c67208fab4b596777fa 100644 (file)
@@ -215,7 +215,7 @@ public:
        boost::intrusive::list_member_hook<>,
        &Buffer::state_item> > state_list_t;
 
-    mempool::bluestore_meta_other::map<uint64_t, std::unique_ptr<Buffer>>
+    mempool::bluestore_meta_other::map<uint32_t, std::unique_ptr<Buffer>>
       buffer_map;
     Cache *cache;
 
@@ -250,7 +250,7 @@ public:
     void _rm_buffer(Buffer *b) {
       _rm_buffer(buffer_map.find(b->offset));
     }
-    void _rm_buffer(map<uint64_t,std::unique_ptr<Buffer>>::iterator p) {
+    void _rm_buffer(map<uint32_t,std::unique_ptr<Buffer>>::iterator p) {
       assert(p != buffer_map.end());
       cache->_audit("_rm_buffer start");
       if (p->second->is_writing()) {
@@ -262,7 +262,7 @@ public:
       cache->_audit("_rm_buffer end");
     }
 
-    map<uint64_t,std::unique_ptr<Buffer>>::iterator _data_lower_bound(
+    map<uint32_t,std::unique_ptr<Buffer>>::iterator _data_lower_bound(
       uint64_t offset) {
       auto i = buffer_map.lower_bound(offset);
       if (i != buffer_map.begin()) {