From a176a6e33843081f9594d67bc8f5701bc9843858 Mon Sep 17 00:00:00 2001 From: huangjun Date: Wed, 4 Jan 2017 09:04:14 +0800 Subject: [PATCH] include/mempool: fix typo in comments Signed-off-by: huangjun --- src/include/mempool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/mempool.h b/src/include/mempool.h index 9a7569312e5..a95ce57dab7 100644 --- a/src/include/mempool.h +++ b/src/include/mempool.h @@ -100,7 +100,7 @@ BlueStore::Onode, we need to do MEMPOOL_DEFINE_OBJECT_FACTORY(BlueStore::Onode, bluestore_onode, bluestore_meta); -(This is just because we need to name some static varables and we +(This is just because we need to name some static variables and we can't use :: in a variable name.) In order to use the STL containers, simply use the namespaced variant @@ -120,7 +120,7 @@ This will dump information about *all* memory pools. When debug mode is enabled, the runtime complexity of dump is O(num_shards * num_types). When debug name is disabled it is O(num_shards). -You can also interogate a specific pool programatically with +You can also interrogate a specific pool programmatically with size_t bytes = mempool::unittest_2::allocated_bytes(); size_t items = mempool::unittest_2::allocated_items(); -- 2.39.5