diff options
author | David Storch <david.storch@10gen.com> | 2017-05-05 16:16:18 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2017-05-05 16:20:29 -0400 |
commit | 02728d11d54f6bd43276ff3c76dea6d2484b4134 (patch) | |
tree | 8face045f19b2720cf4941f5050993568126075f /jstests | |
parent | 9b1f1f9d1225711aa049725174e6ca88ea24e9c8 (diff) | |
download | mongo-02728d11d54f6bd43276ff3c76dea6d2484b4134.tar.gz |
SERVER-28952 Update test for absence of covered plans over multikey indices in 3.4.x versions.
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/core/distinct_multikey.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/jstests/core/distinct_multikey.js b/jstests/core/distinct_multikey.js index ac9e69ff00f..9335cf630e8 100644 --- a/jstests/core/distinct_multikey.js +++ b/jstests/core/distinct_multikey.js @@ -73,7 +73,8 @@ assert(planHasStage(explain.queryPlanner.winningPlan, "FETCH")); assert(planHasStage(explain.queryPlanner.winningPlan, "IXSCAN")); } else { - assert(planHasStage(explain.queryPlanner.winningPlan, "PROJECTION")); + // This can't be covered in versions which do not implement SERVER-3173. + assert(planHasStage(explain.queryPlanner.winningPlan, "FETCH")); assert(planHasStage(explain.queryPlanner.winningPlan, "DISTINCT_SCAN")); } @@ -100,7 +101,8 @@ assert(planHasStage(explain.queryPlanner.winningPlan, "FETCH")); assert(planHasStage(explain.queryPlanner.winningPlan, "IXSCAN")); } else { - assert(planHasStage(explain.queryPlanner.winningPlan, "PROJECTION")); + // This can't be covered in versions which do not implement SERVER-3173. + assert(planHasStage(explain.queryPlanner.winningPlan, "FETCH")); assert(planHasStage(explain.queryPlanner.winningPlan, "DISTINCT_SCAN")); } @@ -120,7 +122,8 @@ assert(planHasStage(explain.queryPlanner.winningPlan, "FETCH")); assert(planHasStage(explain.queryPlanner.winningPlan, "IXSCAN")); } else { - assert(planHasStage(explain.queryPlanner.winningPlan, "PROJECTION")); + // This can't be covered in versions which do not implement SERVER-3173. + assert(planHasStage(explain.queryPlanner.winningPlan, "FETCH")); assert(planHasStage(explain.queryPlanner.winningPlan, "DISTINCT_SCAN")); } }()); |