From c40ff8d8eb557bf6f60ad67491bb0324ede450a7 Mon Sep 17 00:00:00 2001 From: KirillKurdyukov Date: Thu, 15 Aug 2024 16:05:00 +0300 Subject: [PATCH] fix --- slo/src/AdoNet/SloContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slo/src/AdoNet/SloContext.cs b/slo/src/AdoNet/SloContext.cs index 00632b2b..a106290f 100644 --- a/slo/src/AdoNet/SloContext.cs +++ b/slo/src/AdoNet/SloContext.cs @@ -83,7 +83,7 @@ protected override async Task Create(YdbDataSource client, string createTableSql return await ydbCommand.ExecuteScalarAsync(); }, context); - return (policyResult.Context.TryGetValue("RetryCount", out var countAttempts) ? (int)countAttempts : 0, + return (policyResult.Context.TryGetValue("RetryCount", out var countAttempts) ? (int)countAttempts : 1, ((YdbException)policyResult.FinalException)?.Code ?? StatusCode.Success, policyResult.Result); }