summaryrefslogtreecommitdiff
path: root/src/mongo/db/ttl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ttl.cpp')
-rw-r--r--src/mongo/db/ttl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/ttl.cpp b/src/mongo/db/ttl.cpp
index a3e1d7ccea3..8fb39e89642 100644
--- a/src/mongo/db/ttl.cpp
+++ b/src/mongo/db/ttl.cpp
@@ -138,6 +138,7 @@ namespace mongo {
n = deleteObjects(&txn, ctx.ctx().db(), ns, query, false, true);
ttlDeletedDocuments.increment( n );
+ ctx.commit();
}
LOG(1) << "\tTTL deleted: " << n << endl;