diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-12-01 15:19:01 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-12-01 17:41:33 -0500 |
commit | 7e4de6184d876b7963946708d6e83ee57335211f (patch) | |
tree | 9319101e8a28195b6e7ff55afeda6a7e375c4e27 /src/mongo/db/storage/kv/kv_catalog.h | |
parent | 23fad5ee3e26b8d107401e4bfad86f9ada7b7d1f (diff) | |
download | mongo-7e4de6184d876b7963946708d6e83ee57335211f.tar.gz |
ERVER-965: Store the indexes of a collection on another partition/drive than the documents
Diffstat (limited to 'src/mongo/db/storage/kv/kv_catalog.h')
-rw-r--r-- | src/mongo/db/storage/kv/kv_catalog.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/db/storage/kv/kv_catalog.h b/src/mongo/db/storage/kv/kv_catalog.h index 0d665dbdcf1..6aec447d63d 100644 --- a/src/mongo/db/storage/kv/kv_catalog.h +++ b/src/mongo/db/storage/kv/kv_catalog.h @@ -54,7 +54,7 @@ namespace mongo { KVCatalog( RecordStore* rs, bool isRsThreadSafe, bool directoryPerDb, - bool splitCollectionAndIndexes ); + bool directoryForIndexes ); ~KVCatalog(); void init( OperationContext* opCtx ); @@ -100,6 +100,11 @@ namespace mongo { const StringData& ns, RecordId* out=NULL ) const; + /** + * Generates a new unique identifier for a new "thing". + * @param ns - the containing ns + * @param kind - what this "thing" is, likely collection or index + */ std::string _newUniqueIdent(const StringData& ns, const char* kind); // Helpers only used by constructor and init(). Don't call from elsewhere. @@ -109,7 +114,7 @@ namespace mongo { RecordStore* _rs; // not owned const bool _isRsThreadSafe; const bool _directoryPerDb; - const bool _splitCollectionAndIndexes; + const bool _directoryForIndexes; // These two are only used for ident generation inside _newUniqueIdent. std::string _rand; // effectively const after init() returns |