summaryrefslogtreecommitdiff
path: root/tools/tool.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-02-17 10:14:09 -0500
committerEliot Horowitz <eliot@10gen.com>2011-02-17 10:14:09 -0500
commit07dfc029c76df4e1324897544818cbdb8c765323 (patch)
tree9e2851fad00f92ecebc85771070ebffdda2a04b7 /tools/tool.cpp
parent7792243481dbb8ee2cebb361fb3d4c7672b74f11 (diff)
downloadmongo-07dfc029c76df4e1324897544818cbdb8c765323.tar.gz
update mongorestore for large documents SERVER-2575
Diffstat (limited to 'tools/tool.cpp')
-rw-r--r--tools/tool.cpp2
1 files changed, 1 insertions, 1 deletions
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<char> buf_holder(new char[BUF_SIZE]);
char * buf = buf_holder.get();