Commit 06f70bdb authored by Steven Stanfield's avatar Steven Stanfield

Don't treat the entire history as local...

parent fb3f7cbf
Pipeline #6427 passed with stage
in 3 minutes and 8 seconds
......@@ -125,8 +125,13 @@ impl History {
let local_buffers: Option<Vec<Buffer>> =
if !append && self.share && self.local_share > 0 {
let mut local_buffers = Vec::with_capacity(self.local_share);
let mut i = 0;
while let Some(buf) = self.buffers.pop_back() {
local_buffers.push(buf);
i += 1;
if i == self.local_share {
break;
}
}
Some(local_buffers)
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment