diff options
author | Greg Farnum <gregory.farnum@dreamhost.com> | 2011-03-02 16:37:48 -0800 |
---|---|---|
committer | Greg Farnum <gregory.farnum@dreamhost.com> | 2011-03-02 16:37:48 -0800 |
commit | abf46a9f0899e3761a7246312e907ef7bcb144c6 (patch) | |
tree | 2391f119c372a40b65560f967602c5af6c5a9457 /src/mds/CDentry.h | |
parent | ae72c608166e20fef45b95f41a9c6ac989c72181 (diff) | |
parent | f12e1a98fc94011e1a40f43ac014d115565862f8 (diff) | |
download | ceph-abf46a9f0899e3761a7246312e907ef7bcb144c6.tar.gz |
Merge branch 'tcmalloc_optimizations'
Diffstat (limited to 'src/mds/CDentry.h')
-rw-r--r-- | src/mds/CDentry.h | 7 |
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: |