| | |
| | | int index = 0; |
| | | int indexCount = 0; |
| | | |
| | | var mFileList = dataList.FindAll ((obj) => obj.BackupFileName != "null" && obj.BackupFileName != UserConfig.configFile && obj.BackupFileName != UserInfo.GlobalRegisterFile && obj.BackupFileName != "AccountListDB"); |
| | | var mFileList = dataList.FindAll ((obj) => obj.BackupFileName != "null" && obj.BackupFileName != UserConfig.configFile && obj.BackupFileName != UserInfo.GlobalRegisterFile && obj.BackupFileName != "AccountListDB" && obj.BackupFileName != CommonConfig.ConfigFile); |
| | | if (maxThreads > mFileList.Count) { |
| | | maxThreads = mFileList.Count; |
| | | } |
| | |
| | | void UpLoadBackupFileToDBNew (string mBackupClassId, int maxThreads = 20) |
| | | { |
| | | var backuplist = IO.FileUtils.ReadFiles (); |
| | | var mFileList = backuplist.FindAll ((obj) => obj != "null" && obj != UserConfig.configFile && obj != UserInfo.GlobalRegisterFile && obj != "AccountListDB"); |
| | | var mFileList = backuplist.FindAll ((obj) => obj != "null" && obj != UserConfig.configFile && obj != UserInfo.GlobalRegisterFile && obj != "AccountListDB" && obj != CommonConfig.ConfigFile); |
| | | if (mFileList.Count <= 0) return; |
| | | |
| | | if (maxThreads > mFileList.Count) { |