summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/repltests.cpp
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2019-06-24 16:44:36 -0400
committerLingzhi Deng <lingzhi.deng@mongodb.com>2019-07-29 10:36:12 -0400
commit102c20ab166050ae7357732070bc8262aa61749c (patch)
tree6f1f7149444fe753ad7442b0622d4dc230e24635 /src/mongo/dbtests/repltests.cpp
parent0ef81e97a8f60329c44640e6b76189a3b51bd42a (diff)
downloadmongo-102c20ab166050ae7357732070bc8262aa61749c.tar.gz
SERVER-37180: Use OplogEntry everywhere in oplog application
Diffstat (limited to 'src/mongo/dbtests/repltests.cpp')
-rw-r--r--src/mongo/dbtests/repltests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/dbtests/repltests.cpp b/src/mongo/dbtests/repltests.cpp
index 8a7edd7d7b2..95d016a523d 100644
--- a/src/mongo/dbtests/repltests.cpp
+++ b/src/mongo/dbtests/repltests.cpp
@@ -249,8 +249,9 @@ protected:
mongo::unittest::log() << "op: " << *i << endl;
}
repl::UnreplicatedWritesBlock uwb(&_opCtx);
+ auto entry = uassertStatusOK(OplogEntry::parse(*i));
uassertStatusOK(applyOperation_inlock(
- &_opCtx, ctx.db(), *i, false, OplogApplication::Mode::kSecondary));
+ &_opCtx, ctx.db(), &entry, false, OplogApplication::Mode::kSecondary));
}
}
}