Fix connection.scan for parallel scan segment 0
Merge pull request #1 from adamchainz/devel

Fix connection.scan for parallel scan segment 0