diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-05-09 15:54:32 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-05-09 16:40:07 -0400 |
commit | 9574543e0519fd0b319378bb9d4e505f4bfaa9ef (patch) | |
tree | 7c9d5b7d7918b941518447d051f9a6de5d79b3fd /src | |
parent | 741910616f6b2ce01027d3fed3ac6a0fde604f38 (diff) | |
download | mongo-9574543e0519fd0b319378bb9d4e505f4bfaa9ef.tar.gz |
SERVER-13635: ExtentManager::cacheHint docs
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/storage/extent_manager.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/storage/extent_manager.h b/src/mongo/db/storage/extent_manager.h index 6b8c997dfce..7ebb7b199c4 100644 --- a/src/mongo/db/storage/extent_manager.h +++ b/src/mongo/db/storage/extent_manager.h @@ -147,11 +147,16 @@ namespace mongo { */ virtual int quantizeExtentSize( int size ) const; + // see cacheHint methods enum HintType { Sequential, Random }; class CacheHint { public: virtual ~CacheHint(){} }; + /** + * Tell the system that for this extent, it will have this kind of disk access. + * Owner takes owernship of CacheHint + */ virtual CacheHint* cacheHint( const DiskLoc& extentLoc, const HintType& hint ) = 0; }; |