You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The each_block implementation was removed with file.rb, which is used by --extract, --compress, --to-new-format. The alternative seems to be each_block_header, and then continuing reading the stream either by reading the whole rest of the payload, or using some more specific readers.
For --to-new-format, this is not possible, considering the old file will not have a prologue and the Logfiles.initialize will fail without creating a Logfiles object used by each_block_header. Here, one can fall back to BlockStream and its read_next_block_header.
The each_block implementation was removed with file.rb, which is used by --extract, --compress, --to-new-format. The alternative seems to be each_block_header, and then continuing reading the stream either by reading the whole rest of the payload, or using some more specific readers.
For --to-new-format, this is not possible, considering the old file will not have a prologue and the Logfiles.initialize will fail without creating a Logfiles object used by each_block_header. Here, one can fall back to BlockStream and its read_next_block_header.
An implementation of this can be found in https://github.com/pierrewillenbrockdfki/tools-pocolog/pull/new/cli-each_block-fixes
You can use that as a basis for your own fixes, or i can create a merge request if this is fine as-is.
The text was updated successfully, but these errors were encountered: