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:
parent
7792243481
commit
07dfc029c7
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user