Fix bug in wt_binary_decode.py

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Tools
    • None
    • Storage Engines - Persistence
    • SE Persistence - 2026-03-27
    • 1

      This code:

      -    input_size = 'unknown' if filename == '-' else hex(nbytes)
      -    print(f'{input_name}, position {hex(opts.offset)}, size {input_size}, '
      -          f'pagelimit {opts.pages}')
      -    with open_input_file(filename, 'rb') as fileobj:
      -        file_format.wtdecode_file_object(binary_data.BinaryFile(fileobj), nbytes, opts)
      -
      +    file_format.wtdecode_file_object(binary_data.BinaryFile(fileobj), nbytes, opts) 

       

      was removed from wt_binary_decode.py after WT-16760. This change is unrelated to the ticket, and breaks the file. It should be added back in.

            Assignee:
            Dylan Liang
            Reporter:
            Dylan Liang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: