diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2015-01-17 08:27:28 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2015-01-17 08:27:28 +1100 |
commit | 6bab2f390cfbae08bf0801668f54a5fd35db2bfc (patch) | |
tree | ab57a1b5b11dc24dc57ac1b9940a15a4a8582e57 /src | |
parent | 1ac9aae8f6cbf00f8a5d3039a687ea0793ff324f (diff) | |
download | mongo-6bab2f390cfbae08bf0801668f54a5fd35db2bfc.tar.gz |
SERVER-16868 Limit the truncates done by each thread to manage WT capped collections.
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp index c399694c051..8baa6482d34 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp @@ -403,6 +403,7 @@ namespace { RecordId oldest; int ret = 0; while (( sizeSaved < sizeOverCap || docsRemoved < docsOverCap ) && + docsRemoved < 250 && (ret = c->next(c)) == 0 ) { int64_t key; ret = c->get_key(c, &key); |