summaryrefslogtreecommitdiff
path: root/src/mds/CDentry.h
diff options
context:
space:
mode:
authorGreg Farnum <gregory.farnum@dreamhost.com>2011-03-02 16:37:48 -0800
committerGreg Farnum <gregory.farnum@dreamhost.com>2011-03-02 16:37:48 -0800
commitabf46a9f0899e3761a7246312e907ef7bcb144c6 (patch)
tree2391f119c372a40b65560f967602c5af6c5a9457 /src/mds/CDentry.h
parentae72c608166e20fef45b95f41a9c6ac989c72181 (diff)
parentf12e1a98fc94011e1a40f43ac014d115565862f8 (diff)
downloadceph-abf46a9f0899e3761a7246312e907ef7bcb144c6.tar.gz
Merge branch 'tcmalloc_optimizations'
Diffstat (limited to 'src/mds/CDentry.h')
-rw-r--r--src/mds/CDentry.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mds/CDentry.h b/src/mds/CDentry.h
index c065fcbffa9..ac7115c8553 100644
--- a/src/mds/CDentry.h
+++ b/src/mds/CDentry.h
@@ -50,6 +50,13 @@ bool operator<(const CDentry& l, const CDentry& r);
// dentry
class CDentry : public MDSCacheObject, public LRUObject {
+ /*
+ * This class uses a boost::pool to handle allocation. This is *not*
+ * thread-safe, so don't do allocations from multiple threads!
+ *
+ * Alternatively, switch the pool to use a boost::singleton_pool.
+ */
+
private:
static boost::pool<> pool;
public: