[Tarantool-patches] [PATCH 1/1] Fix bootstrap.snap corrupted file.

Kirill Yukhin kyukhin at tarantool.org
Tue Nov 26 10:40:27 MSK 2019


Hello,

On 24 ноя 18:24, Vladislav Shpilevoy wrote:
> Bootstrap.snap is created from a normal snapshot file, but with
> erased VClock option in the header:
> 
>     SNAP
>     0.13
>     Version: 2.2.1-122-g1146bb78d
>     Instance: 03d3836a-e608-421c-9f8d-ad9beefe7440
>     VClock: {}
> 
> In a normal snapshot it is 'VClock: {1: ...}'. To erase the option
> usually developers use 'vim'. But when a binary file is opened in
> vim without any arguments, like this:
> 
>     vim bootstrap.snap
> 
> on close it will edit some parts of the file in unexpected ways,
> depending on local vim settings.
> 
> To forbid any implicit changes binary mode should be used:
> 
>     vim -b bootstrap.snap
> 
> The patch regenerates bootstrap.snap and drops VClock using binary
> mode vim.
> 
> Closes #4510
> ---
> Branch: https://github.com/tarantool/tarantool/tree/gerold103/gh-4510-bootstrap-corrupt-2.2
> Issue: https://github.com/tarantool/tarantool/issues/4510

Your patch LGTM.
I've checked your patch into 2.2

--
Regards, Kirill Yukhin


More information about the Tarantool-patches mailing list