summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/oplogstarttests.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2014-02-06 17:08:39 -0500
committerBenety Goh <benety@mongodb.com>2014-02-10 12:23:27 -0500
commit91204d077bb34b40d1cffa2bbe40c92a08c64d66 (patch)
tree9d34b63a984ab4fb04f61fc4070454273b59adee /src/mongo/dbtests/oplogstarttests.cpp
parent5d94703d7dbbf99de25152e69aacf47b4d09c2d4 (diff)
downloadmongo-91204d077bb34b40d1cffa2bbe40c92a08c64d66.tar.gz
SERVER-12398 bubble error from plan stages to runner
Diffstat (limited to 'src/mongo/dbtests/oplogstarttests.cpp')
-rw-r--r--src/mongo/dbtests/oplogstarttests.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/dbtests/oplogstarttests.cpp b/src/mongo/dbtests/oplogstarttests.cpp
index 39780e851ef..85146e574bf 100644
--- a/src/mongo/dbtests/oplogstarttests.cpp
+++ b/src/mongo/dbtests/oplogstarttests.cpp
@@ -106,7 +106,7 @@ namespace OplogStartTests {
setupFromQuery(BSON( "ts" << BSON( "$gte" << 10 )));
- WorkingSetID id;
+ WorkingSetID id = WorkingSet::INVALID_ID;
// collection scan needs to be initialized
ASSERT_EQUALS(_stage->work(&id), PlanStage::NEED_TIME);
// finds starting record
@@ -130,7 +130,7 @@ namespace OplogStartTests {
setupFromQuery(BSON( "ts" << BSON( "$gte" << 1 )));
- WorkingSetID id;
+ WorkingSetID id = WorkingSet::INVALID_ID;
// collection scan needs to be initialized
ASSERT_EQUALS(_stage->work(&id), PlanStage::NEED_TIME);
// full collection scan back to the first oplog record
@@ -157,7 +157,7 @@ namespace OplogStartTests {
setupFromQuery(BSON( "ts" << BSON( "$gte" << 1 )));
- WorkingSetID id;
+ WorkingSetID id = WorkingSet::INVALID_ID;
// ensure that we go into extent hopping mode immediately
_stage->setBackwardsScanTime(0);
@@ -188,7 +188,7 @@ namespace OplogStartTests {
void run() {
buildCollection();
- WorkingSetID id;
+ WorkingSetID id = WorkingSet::INVALID_ID;
setupFromQuery(BSON( "ts" << BSON( "$gte" << tsGte() )));
// ensure that we go into extent hopping mode immediately