diff options
| -rw-r--r-- | ydb/core/nbs/cloud/blockstore/bootstrap/bootstrap.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ydb/core/nbs/cloud/blockstore/bootstrap/bootstrap.cpp b/ydb/core/nbs/cloud/blockstore/bootstrap/bootstrap.cpp index 249d7c06b9c..62eb7b686d2 100644 --- a/ydb/core/nbs/cloud/blockstore/bootstrap/bootstrap.cpp +++ b/ydb/core/nbs/cloud/blockstore/bootstrap/bootstrap.cpp @@ -89,6 +89,9 @@ const NKikimrConfig::TNbsConfig& TNbsService::GetConfig() const void CreateNbsService(const NKikimrConfig::TNbsConfig& config) { + // Ensure existing NbsService (if any) is destroyed BEFORE a new one + // is constructed to prevent global vhost queue contention. + NbsService = nullptr; NbsService = std::make_shared<TNbsService>(config); } |
