diff options
Diffstat (limited to 'src/mongo/db/ops/insert.cpp')
-rw-r--r-- | src/mongo/db/ops/insert.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/ops/insert.cpp b/src/mongo/db/ops/insert.cpp index f410962b5b3..715895830da 100644 --- a/src/mongo/db/ops/insert.cpp +++ b/src/mongo/db/ops/insert.cpp @@ -29,7 +29,7 @@ */ #include "mongo/db/ops/insert.h" -#include "mongo/db/global_optime.h" +#include "mongo/db/global_timestamp.h" #include "mongo/util/mongoutils/str.h" namespace mongo { @@ -53,7 +53,7 @@ namespace mongo { while ( i.more() ) { BSONElement e = i.next(); - if ( e.type() == Timestamp && e.timestampValue() == 0 ) { + if ( e.type() == bsonTimestamp && e.timestampValue() == 0 ) { // we replace Timestamp(0,0) at the top level with a correct value // in the fast pass, we just mark that we want to swap hasTimestampToFix = true; @@ -122,8 +122,8 @@ namespace mongo { if ( hadId && e.fieldNameStringData() == "_id" ) { // no-op } - else if ( e.type() == Timestamp && e.timestampValue() == 0 ) { - b.append( e.fieldName(), getNextGlobalOptime() ); + else if ( e.type() == bsonTimestamp && e.timestampValue() == 0 ) { + b.append( e.fieldName(), getNextGlobalTimestamp() ); } else { b.append( e ); |