diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-10-14 09:37:03 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-10-15 16:00:01 -0400 |
commit | 786945e1a1fea1eb0f7863879e87d264af7a4293 (patch) | |
tree | f9d4f6e09d05da8b077c7c554c7a2d662920ec22 /src/mongo/db/storage/record_store_test_repairiter.cpp | |
parent | a2adff8b30574ed685443c164e35317418f5c8e4 (diff) | |
download | mongo-786945e1a1fea1eb0f7863879e87d264af7a4293.tar.gz |
SERVER-13635: hook up mmapv1 record stores to harness
Diffstat (limited to 'src/mongo/db/storage/record_store_test_repairiter.cpp')
-rw-r--r-- | src/mongo/db/storage/record_store_test_repairiter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/storage/record_store_test_repairiter.cpp b/src/mongo/db/storage/record_store_test_repairiter.cpp index f58ebbab64e..6aaa91bc892 100644 --- a/src/mongo/db/storage/record_store_test_repairiter.cpp +++ b/src/mongo/db/storage/record_store_test_repairiter.cpp @@ -105,9 +105,8 @@ namespace mongo { RecordIterator *it = rs->getIteratorForRepair( opCtx.get() ); while ( !it->isEOF() ) { - DiskLoc loc = it->curr(); - ASSERT( 1 == remain.erase( loc ) ); - ASSERT_EQUALS( loc, it->getNext() ); + DiskLoc loc = it->getNext(); + remain.erase( loc ); // can happen more than once per doc } ASSERT( remain.empty() ); |