diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-02-19 14:38:02 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-02-20 16:40:35 -0500 |
commit | c75c00cfa8752a804e911b2a9d4057cea523dd4b (patch) | |
tree | 500e3daa319d0ae8744ceafd5e14bafe64dca55f | |
parent | bf7640dfa8474784486a00d24381b934cb4e0207 (diff) | |
download | mongo-c75c00cfa8752a804e911b2a9d4057cea523dd4b.tar.gz |
better maxPasses again SERVER-649
-rw-r--r-- | db/namespace.cpp | 2 |
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; |