From c75c00cfa8752a804e911b2a9d4057cea523dd4b Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Fri, 19 Feb 2010 14:38:02 -0500 Subject: better maxPasses again SERVER-649 --- db/namespace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1