Skip to content

Fix for #30. - #31

Open
tonyastolfi wants to merge 2 commits into
mainfrom
tastolfi/fix-change-log-sync
Open

Fix for #30.#31
tonyastolfi wants to merge 2 commits into
mainfrom
tastolfi/fix-change-log-sync

Conversation

@tonyastolfi

@tonyastolfi tonyastolfi commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Fixes #30

Fixed the ChangeLog::sync hang by moving the code that adds blocks to the output vector in activate_blocks (change_log_writer.cpp) to before the conditional that skips the rest of the loop body if the current block is already trimmed.

Added regression test ChangeLogTest.SyncAggressiveTrim to verify the bug and the fix.

Update: Also removed libbacktrace requirement.

@tonyastolfi
tonyastolfi requested a review from vidyasilai August 12, 2026 20:29

@vidyasilai vidyasilai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one small question about the libbacktrace dependency.

Comment thread conanfile.py
self.requires("yaml-cpp/[>=0.9.0 <1]")
self.requires("zlib/1.3.1", **OVERRIDE)

# boost/1.88.0 and ninja/1.13.2 depend (exactly) on libbacktrace/cci.20210118

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is removing the dependency on libbacktrace just to get rid of the direct dependency turtle_kv has on the library? Or is it meant to also disable the boost dependency as well?

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.

sync() may hang if data is trimmed too aggressively in the ChangeLog

2 participants