[pmg-devel] applied: [PATCH v2 log-tracker 1/2] after-queue: fix wrong DStatus if relay is 'removed' before 'lmtp' line
Stoiko Ivanov
s.ivanov at proxmox.com
Wed Mar 24 11:41:36 CET 2021
On Tue, 23 Mar 2021 15:28:22 +0100
Mira Limbeck <m.limbeck at proxmox.com> wrote:
> We only match a QEntry with the relay Qentry in the after-queue case
> when we get to the 'lmtp' line. This is because it contains a reference
> from the first QEntry to the filter, and the filter contains a reference
> to the relay QEntry.
>
> If the relay log entries are finished before the 'lmtp' line, there's no
> way to match the relay to the first QEntry and we still assume it is
> before-queue filtered.
>
> To fix this we try to match the QEntries via message-id and add weak
> references to each other. Then we wait with finalizing either until the
> other is also 'removed' (finished).
>
> The message-id matching might break if the same message-id is used for
> different entries, so this is rather a 'hack' than a nice solution, but
> there's no other info in the logs we could use to match both QEntries.
>
> Signed-off-by: Mira Limbeck <m.limbeck at proxmox.com>
applied both patches - thanks!
More information about the pmg-devel
mailing list