From fe3afff075978b629f944b2e54134e09cfaf65a2 Mon Sep 17 00:00:00 2001 From: JT Date: Wed, 10 Jul 2024 21:55:52 +0800 Subject: [PATCH] Fix incorrect error settings being passed to rebuild --- src/Marten/Events/Daemon/ProjectionDaemon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Marten/Events/Daemon/ProjectionDaemon.cs b/src/Marten/Events/Daemon/ProjectionDaemon.cs index 86d4cb532a..007ef84efe 100644 --- a/src/Marten/Events/Daemon/ProjectionDaemon.cs +++ b/src/Marten/Events/Daemon/ProjectionDaemon.cs @@ -130,7 +130,7 @@ private async Task rebuildAgent(ISubscriptionAgent agent, long highWaterMark, Ti // Ensure that the agent is stopped if it is already running await stopIfRunningAsync(agent.Name.Identity).ConfigureAwait(false); - var errorOptions = _store.Options.Projections.Errors; + var errorOptions = _store.Options.Projections.RebuildErrors; var request = new SubscriptionExecutionRequest(0, ShardExecutionMode.Rebuild, errorOptions, this); await agent.ReplayAsync(request, highWaterMark, shardTimeout).ConfigureAwait(false);