From: huangjun Date: Wed, 4 Jan 2017 01:04:14 +0000 (+0800) Subject: include/mempool: fix typo in comments X-Git-Tag: v12.0.0~289^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12772%2Fhead;p=ceph.git include/mempool: fix typo in comments Signed-off-by: huangjun --- diff --git a/src/include/mempool.h b/src/include/mempool.h index 9a7569312e55..a95ce57dab78 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();