summaryrefslogtreecommitdiff
path: root/src/mongo/db/sorter/sorter_test.cpp
diff options
context:
space:
mode:
authorGregory Noma <gregory.noma@gmail.com>2020-06-17 17:31:22 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-17 21:44:33 +0000
commitcbe0625a55256a3a0023223ae3e1fc6494e721af (patch)
tree7451f0913d11eb4d827db634c9a84fef951de919 /src/mongo/db/sorter/sorter_test.cpp
parent728a6e9d5d70885314e1e54619b6caffd1498999 (diff)
downloadmongo-cbe0625a55256a3a0023223ae3e1fc6494e721af.tar.gz
SERVER-48416 Write index build progress to internal table on clean shutdown
Diffstat (limited to 'src/mongo/db/sorter/sorter_test.cpp')
-rw-r--r--src/mongo/db/sorter/sorter_test.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/sorter/sorter_test.cpp b/src/mongo/db/sorter/sorter_test.cpp
index f9b56cb88cf..9e307fe2ba1 100644
--- a/src/mongo/db/sorter/sorter_test.cpp
+++ b/src/mongo/db/sorter/sorter_test.cpp
@@ -480,12 +480,13 @@ private:
}
void assertRangeInfo(unowned_ptr<IWSorter> sorter, const SortOptions& opts) {
+ auto state = sorter->getState();
if (opts.extSortAllowed) {
- ASSERT_EQ(sorter->getTempDir(), opts.tempDir);
- ASSERT_NE(sorter->getFileName(), "");
+ ASSERT_EQ(state.tempDir, opts.tempDir);
+ ASSERT_NE(state.fileName, "");
}
if (auto numRanges = correctNumRanges()) {
- ASSERT_EQ(sorter->getRangeInfos().size(), *numRanges);
+ ASSERT_EQ(state.ranges.size(), *numRanges);
}
}
};