feat(batch7): implement f2 reload orchestration and apply path
This commit is contained in:
@@ -498,6 +498,12 @@ internal sealed class ClusterReloadOption : AuthReloadOption
|
||||
public override bool IsClusterPoolSizeOrAccountsChange()
|
||||
=> _poolSizeChanged || _accsAdded.Length > 0 || _accsRemoved.Length > 0;
|
||||
|
||||
internal ClusterOpts? ClusterValue => _newValue as ClusterOpts;
|
||||
internal bool PoolSizeChanged => _poolSizeChanged;
|
||||
internal bool CompressChanged => _compressChanged;
|
||||
internal IReadOnlyList<string> AccountsAdded => _accsAdded;
|
||||
internal IReadOnlyList<string> AccountsRemoved => _accsRemoved;
|
||||
|
||||
/// <summary>
|
||||
/// Computes pool/account deltas used by reload orchestration.
|
||||
/// Mirrors Go <c>clusterOption.diffPoolAndAccounts</c>.
|
||||
@@ -715,6 +721,8 @@ internal sealed class JetStreamReloadOption : NoopReloadOption
|
||||
private readonly bool _newValue;
|
||||
public JetStreamReloadOption(bool newValue) => _newValue = newValue;
|
||||
|
||||
internal bool Value => _newValue;
|
||||
|
||||
public override bool IsJetStreamChange() => true;
|
||||
public override bool IsStatszChange() => true;
|
||||
|
||||
|
||||
1365
dotnet/src/ZB.MOM.NatsNet.Server/NatsServer.Reload.cs
Normal file
1365
dotnet/src/ZB.MOM.NatsNet.Server/NatsServer.Reload.cs
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user