]> Sergey Matveev's repositories - btrtrc.git/commit
Switch to reading consecutive incomplete chunks
authorMatt Joiner <anacrolix@gmail.com>
Mon, 1 Feb 2021 01:22:31 +0000 (12:22 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 1 Feb 2021 23:41:38 +0000 (10:41 +1100)
commit270a2ba1aeb0c14f081b283a4231d2691e448405
tree6331620eb7a0aa06d653c9d287e86856476db2d4
parent4ae8a1bc52cda8ec2db45c5c136a1713a697341f
Switch to reading consecutive incomplete chunks

This fixes a race where a sqlite conn isn't reserved for the read part of a MarkComplete operation after the write has already begun.
storage/piece_resource.go
storage/sqlite/sqlite-storage.go