Skip to content

Commit

Permalink
fix tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpeye committed Nov 28, 2024
1 parent 1be2cac commit 9405182
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions cloud/blockstore/libs/daemon/ydb/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,16 +569,16 @@ void TBootstrapYdb::InitKikimrService()
args.NvmeManager = NvmeManager;
args.UserCounterProviders = {VolumeStats->GetUserCounters()};
args.IsDiskRegistrySpareNode = [&] {
if (!Configs->StorageConfig->GetDisableLocalService()) {
return false;
}
if (!Configs->StorageConfig->GetDisableLocalService()) {
return false;
}

const auto& nodes = Configs->StorageConfig->GetKnownSpareNodes();
const auto& fqdn = FQDNHostName();
const ui32 p = Configs->StorageConfig->GetSpareNodeProbability();
const auto& nodes = Configs->StorageConfig->GetKnownSpareNodes();
const auto& fqdn = FQDNHostName();
const ui32 p = Configs->StorageConfig->GetSpareNodeProbability();

return FindPtr(nodes, fqdn) || CityHash64(fqdn) % 100 < p;
}();
return FindPtr(nodes, fqdn) || CityHash64(fqdn) % 100 < p;
}();
args.VolumeBalancerSwitch = VolumeBalancerSwitch;
args.EndpointEventHandler = EndpointEventHandler;
args.RootKmsKeyProvider = RootKmsKeyProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ class TCreateVolumeActor final

void DescribeBaseVolume(const TActorContext& ctx);
void CreateVolume(const TActorContext& ctx);
void HandleCreateEncryptionKeyResponse(
const TEvServicePrivate::TEvCreateEncryptionKeyResponse::TPtr& ev,
const TActorContext& ctx);

void CreateVolumeImpl(
const TActorContext& ctx,
std::optional<NKikimrBlockStore::TEncryptionDesc> encryptionDesc);
Expand All @@ -76,6 +72,10 @@ class TCreateVolumeActor final
const TEvVolume::TEvWaitReadyResponse::TPtr& ev,
const TActorContext& ctx);

void HandleCreateEncryptionKeyResponse(
const TEvServicePrivate::TEvCreateEncryptionKeyResponse::TPtr& ev,
const TActorContext& ctx);

void ReplyAndDie(
const TActorContext& ctx,
std::unique_ptr<TEvService::TEvCreateVolumeResponse> response);
Expand Down

0 comments on commit 9405182

Please sign in to comment.