Skip to content
Snippets Groups Projects
Commit 54604240 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

stream-clone: smoothly detect and handle a case were a revlog is split

This detect and handle the most common case for a race condition around stream
and revlog splitting. The one were the revlog is split between the initial
collection of data and the time were we start considering stream that data.

In such case, we repatch an inlined version of that revlog together when this
happens. This is necessary as stream-v2 promised a specific number of bytes and
a specific number of files to the client. In stream-v3, we will have the
opportunity to just send a split revlog instead.

Getting a better version of the protocol for stream-v3 is still useful, but it
is no longer a blocket to fix that race condition.

Note that another, rarer race condition exist, were the revlog is split while
we creating the revlog and extracing content from it. This can be dealt with
later.
parent 9caa860d
No related branches found
No related tags found
2 merge requests!618Draft: 6.5rc0,!582streamclone: getting revlog data from the revlog themselves
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment