diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-02-17 10:14:09 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-02-17 10:14:09 -0500 |
commit | 07dfc029c76df4e1324897544818cbdb8c765323 (patch) | |
tree | 9e2851fad00f92ecebc85771070ebffdda2a04b7 /tools/tool.cpp | |
parent | 7792243481dbb8ee2cebb361fb3d4c7672b74f11 (diff) | |
download | mongo-07dfc029c76df4e1324897544818cbdb8c765323.tar.gz |
update mongorestore for large documents SERVER-2575
Diffstat (limited to 'tools/tool.cpp')
-rw-r--r-- | tools/tool.cpp | 2 |
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(); |