Skip to content

fix(core): write the final fingerprints in cache and print mode - #72

Closed
gonzafirewall wants to merge 1 commit into
JorenSix:masterfrom
gonzafirewall:fix/cache-final-fingerprints
Closed

gonzafirewall wants to merge 1 commit into
JorenSix:masterfrom
gonzafirewall:fix/cache-final-fingerprints

Conversation

@gonzafirewall

Copy link
Copy Markdown

At the end of the stream, query, store and delete handle the last batch of fingerprints, but cache and print mode never wrote it. The .tdb therefore missed the fingerprints at the end of the audio, while the .meta counted them. Since store now goes through cache mode, store loses them too.

Example with a 20 s file: .meta says fingerprints=584, but the .tdb has 539 rows. None of the rows is after 17.48 s, and a query match at 16.3–18.8 s in the reference is lost. With this fix the .tdb has 584 rows and the match is found again.

zig build test: 58/60 tests pass and 2 are skipped. One test step fails to link (olaf_config_ep_error, olaf_config_matcher_error), the same as on master.

🤖 Generated with Claude Code

At the end of the stream, query, store and delete handle the last batch
of fingerprints, but cache and print mode never wrote it. The .tdb missed
the fingerprints at the end of the audio while the .meta counted them.
Since store goes through cache mode, store lost them too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gonzafirewall

Copy link
Copy Markdown
Author

Closing: the same fix landed in f81cda5 and was released in v3.1.1. Thanks!

@JorenSix

Copy link
Copy Markdown
Owner

Hi, thanks for the PR and the checks. I have been developing a bit in paralel to this but much appreciated. Pease do keep testing and reporting or PRing.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants