Limiting the output size of log (with a CLI flag)

pmeunier
Jul 21, 2021, 12:51 PM
UW3KU7DHQDCI6GRYI6FI5S6PCLKNCN4QPSAU7WJROY2D5MPQYRAQC

Dependencies

  • [2] EUZFFJSO Updating Pijul with the latest changes in Libpijul
  • [3] A3RM526Y Integrating identity malleability
  • [4] YN63NUZO Sanakirja 1.0
  • [5] I24UEJQL Various post-fire fixes
  • [6] PH7B6I3U Fixing log --hash-only
  • [7] CCLLB7OI Upgrading to Sanakirja 0.15 + version bump
  • [8] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [9] SMMBFECL Converting to the new patch format "online"

Change contents

  • edit in pijul/src/commands/log.rs at line 55
    [3.135514]
    [3.135514]
    let limit = self.limit.unwrap_or(std::usize::MAX);
    let offset = self.offset.unwrap_or(0);
  • replacement in pijul/src/commands/log.rs at line 58
    [3.135542][2.12963:13027]()
    for h in txn.reverse_log(&*channel.read(), None)? {
    [3.135542]
    [3.12912]
    for h in txn
    .reverse_log(&*channel.read(), None)?
    .skip(offset)
    .take(limit)
    {
  • replacement in pijul/src/commands/log.rs at line 72
    [3.986][2.13028:13092]()
    for h in txn.reverse_log(&*channel.read(), None)? {
    [3.986]
    [3.17247]
    for h in txn
    .reverse_log(&*channel.read(), None)?
    .skip(offset)
    .take(limit)
    {