|
@@ -48,6 +48,13 @@ public class MasterService implements InitializingBean{
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
BackupDBFileUtils.reserveFile();
|
|
BackupDBFileUtils.reserveFile();
|
|
|
|
|
+ dbaRepository.flush();
|
|
|
|
|
+ dbas = dbaService.findAll();
|
|
|
|
|
+ if (!CollectionUtils.isEmpty(dbas)) {
|
|
|
|
|
+ for (DBA dba : dbas) {
|
|
|
|
|
+ masters.addAll(dbaService.getMasters(dba));
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
BackupDBFileUtils.init();
|
|
BackupDBFileUtils.init();
|
|
|
}
|
|
}
|