]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: bluestore_txc mempool
authorSage Weil <sage@redhat.com>
Thu, 1 Jun 2017 02:45:11 +0000 (22:45 -0400)
committerSage Weil <sage@redhat.com>
Thu, 1 Jun 2017 02:45:11 +0000 (22:45 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/include/mempool.h
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h

index 958e3344c47eb7215621cf7ed3122e1e428153ba..43f4ffcd960924b796b6b57b180695c3ce46ffee 100644 (file)
@@ -142,6 +142,7 @@ namespace mempool {
   f(bluestore_cache_onode)           \
   f(bluestore_cache_other)           \
   f(bluestore_fsck)                  \
+  f(bluestore_txc)                   \
   f(bluefs)                          \
   f(buffer_anon)                     \
   f(buffer_meta)                     \
index bec34bdf4521cbbcf4053eed140be625c87aa2d1..1a8cd36cec88c216a78d0d7659a0b21a3c15558d 100644 (file)
@@ -50,6 +50,11 @@ MEMPOOL_DEFINE_OBJECT_FACTORY(BlueStore::Blob, bluestore_blob,
 MEMPOOL_DEFINE_OBJECT_FACTORY(BlueStore::SharedBlob, bluestore_shared_blob,
                              bluestore_cache_other);
 
+// bluestore_txc
+MEMPOOL_DEFINE_OBJECT_FACTORY(BlueStore::TransContext, bluestore_transcontext,
+                             bluestore_txc);
+
+
 // kv store prefixes
 const string PREFIX_SUPER = "S";   // field -> value
 const string PREFIX_STAT = "T";    // field -> value(int64 array)
index 0b792f3bf6b22e872e725a0ed05f5986effbc2bf..bf6bdc689ebd78076673ed900ca987686c3b9cb2 100644 (file)
@@ -1389,6 +1389,8 @@ public:
   typedef boost::intrusive_ptr<OpSequencer> OpSequencerRef;
 
   struct TransContext : public AioContext {
+    MEMPOOL_CLASS_HELPERS();
+
     typedef enum {
       STATE_PREPARE,
       STATE_AIO_WAIT,