summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2010-07-18 14:18:33 -0400
committerdwight <dwight@10gen.com>2010-07-18 14:18:33 -0400
commit528ad7a41a490d487b2fc6774ee796ab877f79ea (patch)
treed314034c0a1d740810bebcc0f3badcb29d8b11bf /tools
parent3ec88b0c0f79c24a305f59c414e98a2bcafcc0cc (diff)
downloadmongo-528ad7a41a490d487b2fc6774ee796ab877f79ea.tar.gz
compile sniffer
Diffstat (limited to 'tools')
-rw-r--r--tools/sniffer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/sniffer.cpp b/tools/sniffer.cpp
index 2237dedef3b..eff4f54baff 100644
--- a/tools/sniffer.cpp
+++ b/tools/sniffer.cpp
@@ -346,7 +346,7 @@ void processMessage( Connection& c , Message& m ){
Message response;
conn->port().call( m, response );
QueryResult *qr = (QueryResult *) response.singleData();
- if ( !( qr->resultFlags() & QueryResult::ResultFlag_CursorNotFound ) ) {
+ if ( !( qr->resultFlags() & ResultFlag_CursorNotFound ) ) {
if ( qr->cursorId != 0 ) {
lastCursor[ c ] = qr->cursorId;
return;
@@ -361,7 +361,7 @@ void processMessage( Connection& c , Message& m ){
long long myCursor = lastCursor[ r ];
QueryResult *qr = (QueryResult *) m.singleData();
long long yourCursor = qr->cursorId;
- if ( ( qr->resultFlags() & QueryResult::ResultFlag_CursorNotFound ) )
+ if ( ( qr->resultFlags() & ResultFlag_CursorNotFound ) )
yourCursor = 0;
if ( myCursor && !yourCursor )
cerr << "Expected valid cursor in sniffed response, found none" << endl;