diff options
author | Randolph Tan <randolph@10gen.com> | 2014-07-15 16:48:59 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2014-07-16 13:41:37 -0400 |
commit | 2fd2eebb2656ae65bd6eb63b39f8faeb84e0db4e (patch) | |
tree | e74a56e3d3423d15565d739721f343fafa753798 /src/mongo/db/dbhelpers.h | |
parent | d134ba27aa7f2c4eb8fc4b1331c8331f5914bfc6 (diff) | |
download | mongo-2fd2eebb2656ae65bd6eb63b39f8faeb84e0db4e.tar.gz |
SERVER-14041 enhance secondaryThrottle parameter
This reverts commit 37f2a1e3b724dbd9e1f8eafd4ac87c5bf613c048 (undo revert).
This reverts commit d60fd22dec1c0bd104622eab463cdbba18bf11a9 (undo revert).
Fix Windows compile failure.
Add more defensive checks.
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r-- | src/mongo/db/dbhelpers.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h index be0ca859248..865543c74f9 100644 --- a/src/mongo/db/dbhelpers.h +++ b/src/mongo/db/dbhelpers.h @@ -41,6 +41,7 @@ namespace mongo { class Collection; class Cursor; class OperationContext; + struct WriteConcernOptions; /** * db helpers are helper functions and classes that let us easily manipulate the local @@ -164,8 +165,8 @@ namespace mongo { */ static long long removeRange( OperationContext* txn, const KeyRange& range, - bool maxInclusive = false, - bool secondaryThrottle = false, + bool maxInclusive, + const WriteConcernOptions& secondaryThrottle, RemoveSaver* callback = NULL, bool fromMigrate = false, bool onlyRemoveOrphanedDocs = false ); |