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_engine_test_harness.cpp | |
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_engine_test_harness.cpp')
-rw-r--r-- | src/mongo/db/storage/kv/kv_engine_test_harness.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/storage/kv/kv_engine_test_harness.cpp b/src/mongo/db/storage/kv/kv_engine_test_harness.cpp index 864d88e3e13..46c8b8f1965 100644 --- a/src/mongo/db/storage/kv/kv_engine_test_harness.cpp +++ b/src/mongo/db/storage/kv/kv_engine_test_harness.cpp @@ -226,6 +226,7 @@ namespace mongo { WriteUnitOfWork uow( &opCtx ); ASSERT_OK( catalog->newCollection( &opCtx, "a.b", CollectionOptions() ) ); ASSERT_NOT_EQUALS( "a.b", catalog->getCollectionIdent( "a.b" ) ); + ASSERT_TRUE( catalog->isUserDataIdent( catalog->getCollectionIdent( "a.b" ) ) ); uow.commit(); } @@ -252,6 +253,7 @@ namespace mongo { { MyOperationContext opCtx( engine ); ASSERT_EQUALS( idxIndent, catalog->getIndexIdent( &opCtx, "a.b", "foo" ) ); + ASSERT_TRUE( catalog->isUserDataIdent( catalog->getIndexIdent( &opCtx, "a.b", "foo" ) ) ); } { @@ -296,6 +298,7 @@ namespace mongo { WriteUnitOfWork uow( &opCtx ); ASSERT_OK( catalog->newCollection( &opCtx, "a.b", CollectionOptions() ) ); ASSERT_STRING_CONTAINS( catalog->getCollectionIdent( "a.b" ), "a/" ); + ASSERT_TRUE( catalog->isUserDataIdent( catalog->getCollectionIdent( "a.b" ) ) ); uow.commit(); } @@ -311,6 +314,7 @@ namespace mongo { false ) ); catalog->putMetaData( &opCtx, "a.b", md ); ASSERT_STRING_CONTAINS( catalog->getIndexIdent( &opCtx, "a.b", "foo" ), "a/" ); + ASSERT_TRUE( catalog->isUserDataIdent( catalog->getIndexIdent( &opCtx, "a.b", "foo" ) ) ); uow.commit(); } @@ -336,6 +340,7 @@ namespace mongo { WriteUnitOfWork uow( &opCtx ); ASSERT_OK( catalog->newCollection( &opCtx, "a.b", CollectionOptions() ) ); ASSERT_STRING_CONTAINS( catalog->getCollectionIdent( "a.b" ), "collection/" ); + ASSERT_TRUE( catalog->isUserDataIdent( catalog->getCollectionIdent( "a.b" ) ) ); uow.commit(); } @@ -351,6 +356,7 @@ namespace mongo { false ) ); catalog->putMetaData( &opCtx, "a.b", md ); ASSERT_STRING_CONTAINS( catalog->getIndexIdent( &opCtx, "a.b", "foo" ), "index/" ); + ASSERT_TRUE( catalog->isUserDataIdent( catalog->getIndexIdent( &opCtx, "a.b", "foo" ) ) ); uow.commit(); } @@ -376,6 +382,7 @@ namespace mongo { WriteUnitOfWork uow( &opCtx ); ASSERT_OK( catalog->newCollection( &opCtx, "a.b", CollectionOptions() ) ); ASSERT_STRING_CONTAINS( catalog->getCollectionIdent( "a.b" ), "a/collection/" ); + ASSERT_TRUE( catalog->isUserDataIdent( catalog->getCollectionIdent( "a.b" ) ) ); uow.commit(); } @@ -391,6 +398,7 @@ namespace mongo { false ) ); catalog->putMetaData( &opCtx, "a.b", md ); ASSERT_STRING_CONTAINS( catalog->getIndexIdent( &opCtx, "a.b", "foo" ), "a/index/" ); + ASSERT_TRUE( catalog->isUserDataIdent( catalog->getIndexIdent( &opCtx, "a.b", "foo" ) ) ); uow.commit(); } |