]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: define PREFIX_ALLOC_BITMAP
authorSage Weil <sage@redhat.com>
Mon, 2 Oct 2017 20:49:46 +0000 (15:49 -0500)
committerSage Weil <sage@redhat.com>
Thu, 5 Oct 2017 03:01:02 +0000 (22:01 -0500)
This was hard-coded to 'b'.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc

index 496c37c075f2b6112351644360ba06c5621e20b9..a2da49751b456d8796e7827d1cd053e5a2d5b092 100644 (file)
@@ -65,6 +65,7 @@ const string PREFIX_OBJ = "O";     // object name -> onode_t
 const string PREFIX_OMAP = "M";    // u64 + keyname -> value
 const string PREFIX_DEFERRED = "L";  // id -> deferred_transaction_t
 const string PREFIX_ALLOC = "B";   // u64 offset -> u64 length (freelist)
+const string PREFIX_ALLOC_BITMAP = "b"; // (see BitmapFreelistManager)
 const string PREFIX_SHARED_BLOB = "X"; // u64 offset -> shared_blob_t
 
 // write a label in the first block.  always use this size.  note that
@@ -11550,7 +11551,7 @@ void BlueStore::generate_db_histogram(Formatter *f)
     } else if (key.first == PREFIX_DEFERRED) {
        hist.update_hist_entry(hist.key_hist, PREFIX_DEFERRED, key_size, value_size);
        num_deferred++;
-    } else if (key.first == PREFIX_ALLOC || key.first == "b" ) {
+    } else if (key.first == PREFIX_ALLOC || key.first == PREFIX_ALLOC_BITMAP) {
        hist.update_hist_entry(hist.key_hist, PREFIX_ALLOC, key_size, value_size);
        num_alloc++;
     } else if (key.first == PREFIX_SHARED_BLOB) {