0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

update mongorestore for large documents SERVER-2575

This commit is contained in:
Eliot Horowitz 2011-02-17 10:14:09 -05:00
parent 7792243481
commit 07dfc029c7

View File

@ -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();