Skip to content

Commit 7ee402f

Browse files
committed
.
1 parent 7c8dd68 commit 7ee402f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

code/KustoCopyConsole/KustoCopyConsole.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</ItemGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="track-db" Version="0.5.2.30" />
31+
<PackageReference Include="track-db" Version="0.5.3.31" />
3232
<PackageReference Include="Azure.Storage.Files.DataLake" Version="12.23.0" />
3333
<PackageReference Include="CommandLineParser" Version="2.9.1" />
3434
<PackageReference Include="Microsoft.Azure.Kusto.Data" Version="14.0.1" />

code/KustoCopyConsole/Runner/QueueIngestRunner.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,16 @@ private async Task QueueIngestBlockAsync(
107107
var ingestionBatches = operationTexts
108108
.Select(op => new IngestionBatchRecord(block.BlockKey, op));
109109

110-
Database.IngestionBatches.AppendRecords(ingestionBatches);
110+
using (var tc = Database.Database.CreateTransaction())
111+
{
112+
Database.Blocks.UpdateRecord(
113+
block,
114+
block with { State = BlockState.Queued },
115+
tc);
116+
Database.IngestionBatches.AppendRecords(ingestionBatches);
117+
118+
tc.Complete();
119+
}
111120

112121
Trace.TraceInformation($"Block {block.BlockKey}: {urlRecords.Length} urls queued");
113122
}

0 commit comments

Comments
 (0)