Skip to content

1.1.0

Choose a tag to compare

@bertbarabas bertbarabas released this 05 Jun 20:58
· 2 commits to master since this release

Locking improvements

  • added use_os_file_locking flag to CaptureFile with a default of False so file locking is not used unless explicitly desired which is usually only when multiple processes are intended to work with a single capture file
  • master node locking now also uses an internal lock for single process but multi-threaded applications

Provided access to compression_block_size setting in CaptureFile constructor which can improve compression when typical commits contain significantly more than 32KB of data

Added more tests around internal and file based locking

Made to_write an explicit attribute of CaptureFile, before it was incorrectly an InitVar

Minor refactoring

  • added __str__ to CaptureFile
  • Refactored path traversal to increase clarity

Suppressed a small number of mypy errors that occurred because the module supporting file locking that is imported is conditional on the OS that is in use (e.g. Linux vs Windows). Mypy was flagging code using features of the module that was not included even though that code is not in use unless running on corresponding OS.

Updated API documentation

Minor reorg to design doc