From 0e046fb2cb78015f3fb27c12d58fea42dcdf8f35 Mon Sep 17 00:00:00 2001 From: sharpeye Date: Wed, 25 Sep 2024 08:25:54 +0000 Subject: [PATCH] tweak --- .../blockstore/libs/service_local/file_io_service_provider.cpp | 3 +-- .../libs/service_local/file_io_service_provider_ut.cpp | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cloud/blockstore/libs/service_local/file_io_service_provider.cpp b/cloud/blockstore/libs/service_local/file_io_service_provider.cpp index 2fabecc2230..3101d3c5ea7 100644 --- a/cloud/blockstore/libs/service_local/file_io_service_provider.cpp +++ b/cloud/blockstore/libs/service_local/file_io_service_provider.cpp @@ -49,8 +49,7 @@ class TFileIOServiceProvider final return FileIOs[p->second]; } - if ((PathToFileIOIndex.size() + 1) > PathsPerServices * FileIOs.size()) - { + if (PathToFileIOIndex.size() + 1 > PathsPerServices * FileIOs.size()) { auto service = Factory(); Y_DEBUG_ABORT_UNLESS(service); service->Start(); diff --git a/cloud/blockstore/libs/service_local/file_io_service_provider_ut.cpp b/cloud/blockstore/libs/service_local/file_io_service_provider_ut.cpp index 73b585e263e..28ee2f44789 100644 --- a/cloud/blockstore/libs/service_local/file_io_service_provider_ut.cpp +++ b/cloud/blockstore/libs/service_local/file_io_service_provider_ut.cpp @@ -123,6 +123,8 @@ Y_UNIT_TEST_SUITE(TFileIOServiceProviderTest) void ShouldCreateOneServicePerOnePathImpl(ui32 pathsToServices) { + UNIT_ASSERT(pathsToServices <= 1); + TTestProvider upstream; auto provider = CreateFileIOServiceProvider(