Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repair: fix small error-handling logic mistake
As noticed by Tomasz Grabiec, we test a future's available() after having already waited for it with when_all(), which is pointless. The code after the wrong if() exchanges the contents of a token-range between this node and several other live neighbors; We can't do this exchange if either this node is broken or there is no other live neighbor. So this is what we needed to test. so !available() should have been failed(). Also the test for live_neighbors_checksum.empty() added in commit 7c873f0 is unnecessary - we build live_neighbors and live_neighbors_checksum together, so if one of them is empty, so is the other. Signed-off-by: Nadav Har'El <nyh@scylladb.com> Message-Id: <20180710114940.26027-1-nyh@scylladb.com>
- Loading branch information