diff --git a/ydb/core/wrappers/s3_storage.h b/ydb/core/wrappers/s3_storage.h index 4cbb58687f21..d678f237616e 100644 --- a/ydb/core/wrappers/s3_storage.h +++ b/ydb/core/wrappers/s3_storage.h @@ -67,9 +67,7 @@ class TS3ExternalStorage: public IExternalStorageOperator, TS3User { Y_DEFER { std::unique_lock guard(RunningQueriesMutex); --RunningQueriesCount; - bool needNotify = (RunningQueriesCount == 0); - guard.unlock(); - if (needNotify) { + if (RunningQueriesCount == 0) { RunningQueriesNotifier.notify_all(); } };