summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-02-19 14:38:02 -0500
committerEliot Horowitz <eliot@10gen.com>2010-02-20 16:40:35 -0500
commitc75c00cfa8752a804e911b2a9d4057cea523dd4b (patch)
tree500e3daa319d0ae8744ceafd5e14bafe64dca55f
parentbf7640dfa8474784486a00d24381b934cb4e0207 (diff)
downloadmongo-c75c00cfa8752a804e911b2a9d4057cea523dd4b.tar.gz
better maxPasses again SERVER-649
-rw-r--r--db/namespace.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/namespace.cpp b/db/namespace.cpp
index b460f789de9..78035899f6a 100644
--- a/db/namespace.cpp
+++ b/db/namespace.cpp
@@ -448,7 +448,7 @@ namespace mongo {
assert( len < 400000000 );
int passes = 0;
- int maxPasses = len / 32; // 30 is about the smallest entry that could go in the oplog
+ int maxPasses = ( len / 30 ) + 2; // 30 is about the smallest entry that could go in the oplog
if ( maxPasses < 5000 ){
// this is for bacwards safety since 5000 was the old value
maxPasses = 5000;