-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.8.2
-
Component/s: None
-
None
-
Environment:at least ubuntu linux 10.10
-
ALL
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() )
}
- duplicates
-
SERVER-1440 copyDatabase doesn't work in sharded setup
- Closed