fix GetFilesToProcess in migration
This commit is contained in:
parent
bae96cbdf7
commit
e8ed2bcd89
@ -43,6 +43,7 @@ public class MigrationCreator
|
|||||||
private string _userName;
|
private string _userName;
|
||||||
private string _toRegion;
|
private string _toRegion;
|
||||||
private int _tenant;
|
private int _tenant;
|
||||||
|
private readonly object _locker = new object();
|
||||||
private readonly int _limit = 1000;
|
private readonly int _limit = 1000;
|
||||||
private readonly List<ModuleName> _namesModules = new List<ModuleName>()
|
private readonly List<ModuleName> _namesModules = new List<ModuleName>()
|
||||||
{
|
{
|
||||||
@ -290,7 +291,11 @@ public class MigrationCreator
|
|||||||
.Select(path => new BackupFileInfo(string.Empty, module, path, _tenant))
|
.Select(path => new BackupFileInfo(string.Empty, module, path, _tenant))
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
|
lock (_locker)
|
||||||
|
{
|
||||||
list.AddRange(files);
|
list.AddRange(files);
|
||||||
|
}
|
||||||
|
|
||||||
if (files.Any())
|
if (files.Any())
|
||||||
{
|
{
|
||||||
Console.WriteLine($"file {dbFile.Id} found");
|
Console.WriteLine($"file {dbFile.Id} found");
|
||||||
|
Loading…
Reference in New Issue
Block a user