summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2012-02-09 16:28:33 -0500
committerMathias Stearn <mathias@10gen.com>2012-02-09 17:57:49 -0500
commit1eb864980b70545359eb8db355adc772f0e1c026 (patch)
treea6c39599dea54f45044541d43e7bc0ccd05f4b4e /src
parent936fea78727ca9026ce35d6afb8896509ee6e273 (diff)
downloadmongo-1eb864980b70545359eb8db355adc772f0e1c026.tar.gz
Use long long in key parts of OpDebug
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/client.cpp2
-rw-r--r--src/mongo/db/curop.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/client.cpp b/src/mongo/db/client.cpp
index ba1c53454cb..82f7740c442 100644
--- a/src/mongo/db/client.cpp
+++ b/src/mongo/db/client.cpp
@@ -670,7 +670,7 @@ namespace mongo {
return s.str();
}
-#define OPDEBUG_APPEND_NUMBER(x) if( x != -1 ) b.append( #x , (x) )
+#define OPDEBUG_APPEND_NUMBER(x) if( x != -1 ) b.appendNumber( #x , (x) )
#define OPDEBUG_APPEND_BOOL(x) if( x ) b.appendBool( #x , (x) )
void OpDebug::append( const CurOp& curop, BSONObjBuilder& b ) const {
b.append( "op" , iscommand ? "command" : opToString( op ) );
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index 6507ff4be0a..7dcec9b98e6 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -58,11 +58,11 @@ namespace mongo {
bool exhaust;
// debugging/profile info
- int nscanned;
+ long long nscanned;
bool idhack; // indicates short circuited code path on an update to make the update faster
bool scanAndOrder; // scanandorder query plan aspect was used
- int nupdated; // number of records updated
- int nmoved; // updates resulted in a move (moves are expensive)
+ long long nupdated; // number of records updated
+ long long nmoved; // updates resulted in a move (moves are expensive)
bool fastmod;
bool fastmodinsert; // upsert of an $operation. builds a default object
bool upsert; // true if the update actually did an insert