summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/rollbacktests.cpp
diff options
context:
space:
mode:
authorMartin Bligh <mbligh@mongodb.com>2015-09-09 15:59:59 -0400
committerMartin Bligh <mbligh@mongodb.com>2015-09-09 15:59:59 -0400
commit90fcd20464a2c9bf9a2dfca12f236d34bd57437c (patch)
treec44f0ecc266dbfd36a1bcb0ae9dfd5d044261007 /src/mongo/dbtests/rollbacktests.cpp
parentfd66049b16770caec3c33cfcf87973f0c54144e3 (diff)
downloadmongo-90fcd20464a2c9bf9a2dfca12f236d34bd57437c.tar.gz
SERVER-19564: Drop unused recordID return from insertDocument
Precursor to writev
Diffstat (limited to 'src/mongo/dbtests/rollbacktests.cpp')
-rw-r--r--src/mongo/dbtests/rollbacktests.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/dbtests/rollbacktests.cpp b/src/mongo/dbtests/rollbacktests.cpp
index 52d9e0fc67f..2fc01f16b8e 100644
--- a/src/mongo/dbtests/rollbacktests.cpp
+++ b/src/mongo/dbtests/rollbacktests.cpp
@@ -86,11 +86,10 @@ Status truncateCollection(OperationContext* txn, const NamespaceString& nss) {
Collection* coll = dbHolder().get(txn, nss.db())->getCollection(nss.ns());
return coll->truncate(txn);
}
-RecordId insertRecord(OperationContext* txn, const NamespaceString& nss, const BSONObj& data) {
+
+void insertRecord(OperationContext* txn, const NamespaceString& nss, const BSONObj& data) {
Collection* coll = dbHolder().get(txn, nss.db())->getCollection(nss.ns());
- StatusWith<RecordId> status = coll->insertDocument(txn, data, false);
- ASSERT_OK(status.getStatus());
- return status.getValue();
+ ASSERT_OK(coll->insertDocument(txn, data, false));
}
void assertOnlyRecord(OperationContext* txn, const NamespaceString& nss, const BSONObj& data) {
Collection* coll = dbHolder().get(txn, nss.db())->getCollection(nss.ns());