Skip to content

clp-s: Ensure ArchiveWriterOption is fully initialized when splitting archives.#462

Merged
gibber9809 merged 3 commits into
y-scope:mainfrom
gibber9809:archive-option-fix
Jun 25, 2024
Merged

clp-s: Ensure ArchiveWriterOption is fully initialized when splitting archives.#462
gibber9809 merged 3 commits into
y-scope:mainfrom
gibber9809:archive-option-fix

Conversation

@gibber9809

Copy link
Copy Markdown
Contributor

Description

This PR fixes a minor bug where after splitting an archive the print-archive-stats option can be set to a random value.

Validation performed

  • Checked that after the archive splits the print-archive-stats option seems to be preserved

@kirkrodrigues kirkrodrigues left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

At a high level, wouldn't it make more sense to store archive_write_option as a member of JsonParser and then only update the id when splitting an archive?

Comment thread components/core/src/clp_s/JsonParser.cpp Outdated
gibber9809 and others added 2 commits June 25, 2024 17:07
Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com>
@gibber9809 gibber9809 requested a review from kirkrodrigues June 25, 2024 21:35

@kirkrodrigues kirkrodrigues left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For the PR title, how about:

clp-s: Ensure ArchiveWriterOption is fully initialized when splitting archives.

@gibber9809 gibber9809 changed the title clp-s: Fix a bug where print-archive-stats option is sometimes not initialized clp-s: Ensure ArchiveWriterOption is fully initialized when splitting archives. Jun 25, 2024
@gibber9809 gibber9809 merged commit 8a2c0a8 into y-scope:main Jun 25, 2024
jackluo923 pushed a commit to jackluo923/clp that referenced this pull request Dec 4, 2024
… archives. (y-scope#462)

Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com>
@gibber9809 gibber9809 deleted the archive-option-fix branch January 29, 2025 15:51
junhaoliao pushed a commit to junhaoliao/clp that referenced this pull request May 17, 2026
… archives. (y-scope#462)

Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com>
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