]> git.giacomolli.uk - onechat/commit
Resume queued appends at their saved log ID
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Tue, 10 Nov 2026 05:06:24 +0000 (02:06 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Tue, 10 Nov 2026 05:06:24 +0000 (02:06 -0300)
commitc3c7bc90eb73e83f48fbeac6be149ade95a726c0
tree8fe3cff9fc6c02ff1606f314cdad2f0d03cd6098
parent6004a6d0f7af1ecf3d0ac976f50bb4f93c619887
Resume queued appends at their saved log ID

Memory saves a queued message's position before it appends under the
write lock. Recovery reads that position or completes its append, so a
stop between the queue save and the log write cannot repeat the message.
The queue owns the saved position and stops delivery after a failure.
memory.go
memory_delivery_test.go [new file with mode: 0644]