summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclientcursor.h
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2013-01-18 17:46:27 -0500
committerRandolph Tan <randolph@10gen.com>2013-01-18 18:31:26 -0500
commit3dfc22e239d7455608a2ad2bc1197eac78550a23 (patch)
treec6e5ce37e1959459dc4d1ba8f4fd57955536e340 /src/mongo/client/dbclientcursor.h
parente375265c72bbff840008b165f39f3d683de20ab9 (diff)
downloadmongo-3dfc22e239d7455608a2ad2bc1197eac78550a23.tar.gz
SERVER-939 abilitiy to distribute collections in a single db
Fixed test failure due to uninitialized flag in the mock cursor.
Diffstat (limited to 'src/mongo/client/dbclientcursor.h')
-rw-r--r--src/mongo/client/dbclientcursor.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/client/dbclientcursor.h b/src/mongo/client/dbclientcursor.h
index e73527acf09..8c31820ffcc 100644
--- a/src/mongo/client/dbclientcursor.h
+++ b/src/mongo/client/dbclientcursor.h
@@ -138,6 +138,7 @@ namespace mongo {
fieldsToReturn(_fieldsToReturn),
opts(queryOptions),
batchSize(bs==1?2:bs),
+ resultFlags(0),
cursorId(),
_ownCursor( true ),
wasError( false ) {
@@ -149,9 +150,14 @@ namespace mongo {
ns(_ns),
nToReturn( _nToReturn ),
haveLimit( _nToReturn > 0 && !(options & QueryOption_CursorTailable)),
+ nToSkip(0),
+ fieldsToReturn(0),
opts( options ),
+ batchSize(0),
+ resultFlags(0),
cursorId(_cursorId),
- _ownCursor( true ) {
+ _ownCursor(true),
+ wasError(false) {
_finishConsInit();
}