mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
Remove first:true op field
This commit is contained in:
parent
9f5ae81ed4
commit
f1b3732e1d
13
db/repl.cpp
13
db/repl.cpp
@ -759,17 +759,7 @@ namespace mongo {
|
||||
if ( justCreated || /* datafiles were missing. so we need everything, no matter what sources object says */
|
||||
newDb ) /* if not in dbs, we've never synced this database before, so we need everything */
|
||||
{
|
||||
if ( op.getBoolField("first") &&
|
||||
pairSync->initialSyncCompleted() /*<- when false, we are a replacement volume for a pair and need a full sync */
|
||||
) {
|
||||
log() << "pull: got {first:true} op ns:" << ns << '\n';
|
||||
/* this is the first thing in the oplog ever, so we don't need to resync(). */
|
||||
if ( newDb )
|
||||
dbs.insert(clientName);
|
||||
else
|
||||
problem() << "warning: justCreated && !newDb in repl " << op.toString() << endl;
|
||||
}
|
||||
else if ( paired && !justCreated ) {
|
||||
if ( paired && !justCreated ) {
|
||||
if ( strcmp(opType,"db") == 0 && strcmp(ns, "admin.") == 0 ) {
|
||||
// "admin" is a special namespace we use for priviledged commands -- ok if it exists first on
|
||||
// either side
|
||||
@ -1120,7 +1110,6 @@ namespace mongo {
|
||||
if ( o2 )
|
||||
b.append("o2", *o2);
|
||||
if ( !haveLogged ) {
|
||||
b.appendBool("first", true);
|
||||
if ( database ) // null on dropDatabase()'s logging.
|
||||
database->setHaveLogged();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user