Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpeye committed Nov 4, 2024
1 parent de6a049 commit 3346ef3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cloud/blockstore/libs/disk_agent/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ bool AgentHasDevices(
const TString storagePath = storageConfig->GetCachedDiskAgentConfigPath();
const TString diskAgentPath = agentConfig->GetCachedConfigPath();
const TString& path = diskAgentPath.empty() ? storagePath : diskAgentPath;
auto cachedDevices = NStorage::LoadCachedConfig(path);
if (!cachedDevices.empty()) {

if (auto [config, _] = NStorage::LoadDiskAgentConfig(path);
config.FileDevicesSize() != 0)
{
return true;
}

Expand Down

0 comments on commit 3346ef3

Please sign in to comment.