From 8e311b0094ea53e289b57b88c9183801e9626af2 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Fri, 19 Feb 2010 14:38:02 -0500 Subject: [PATCH] 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 a5bd0e6fde0..60691d7d8ae 100644 --- a/db/namespace.cpp +++ b/db/namespace.cpp @@ -484,7 +484,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;