mirror of
https://github.com/kopia/kopia.git
synced 2026-03-14 04:06:44 -04:00
Previously, it was possible for Flush() to miss in-flight writes, but only when using repository manually since Uploader guarantees there are no in-flight writes when it completes. With this change Flush() will guarantee that any pending writes completed before Flush() has started are guaranteed to be committed to the repository before Flush() returns. This was actually a regression introduced in #105. Added regression test to prevent it from reoccurring.