File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 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" />
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments