From 07dfc029c76df4e1324897544818cbdb8c765323 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Thu, 17 Feb 2011 10:14:09 -0500 Subject: update mongorestore for large documents SERVER-2575 --- tools/tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/tool.cpp') diff --git a/tools/tool.cpp b/tools/tool.cpp index 8038a809dff..e485f02dbc4 100644 --- a/tools/tool.cpp +++ b/tools/tool.cpp @@ -389,7 +389,7 @@ namespace mongo { unsigned long long num = 0; unsigned long long processed = 0; - const int BUF_SIZE = 1024 * 1024 * 5; + const int BUF_SIZE = BSONObjMaxUserSize + ( 1024 * 1024 ); boost::scoped_array buf_holder(new char[BUF_SIZE]); char * buf = buf_holder.get(); -- cgit v1.2.1