Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
1.8.2
-
None
-
None
-
at least ubuntu linux 10.10
-
ALL
Description
Copying is incomplete or does not happen at all.
Workaround is to script something like:
var mongoTo = mongod; var mongoFrom = mongos;
var collections = mongoFrom.getDB( "test" ).getCollectionNames()
var dbTo = "test2"; var dbFrom = "test"
var collections = mongoFrom.getDB( dbFrom ).getCollectionNames()
for( var i = 0; i < collections.length; i++ ){
var cursor = mongoFrom.getCollection( dbFrom + "." + collections[i] ).find()
while( cursor.hasNext() )
}
Attachments
Issue Links
- duplicates
-
SERVER-1440 copyDatabase doesn't work in sharded setup
-
- Closed
-