Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/Adaptive.Archiver/AeronArchive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3325,6 +3325,28 @@ public AgentInvoker AgentInvoker()
return agentInvoker;
}

internal int RunInvokers()
{
int workCount = 0;

Aeron.Aeron aeronClient = AeronClient();
if (null != aeronClient)
{
AgentInvoker conductorAgentInvoker = aeronClient.ConductorAgentInvoker;
if (null != conductorAgentInvoker)
{
workCount += conductorAgentInvoker.Invoke();
}
}

if (null != agentInvoker)
{
workCount += agentInvoker.Invoke();
}

return workCount;
}

/// <summary>
/// Get the <seealso cref="ICredentialsSupplier"/> to be used for authentication with the archive.
/// </summary>
Expand Down Expand Up @@ -3577,6 +3599,7 @@ public AsyncConnectState State()
public AeronArchive Poll()
{
CheckDeadline();
ctx.RunInvokers();

if (AsyncConnectState.ADD_PUBLICATION == state)
{
Expand Down
Loading