Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH 1/1] Fix bootstrap.snap corrupted file.
@ 2019-11-24 17:24 Vladislav Shpilevoy
  2019-11-24 20:21 ` Vladislav Shpilevoy
  2019-11-26  7:40 ` Kirill Yukhin
  0 siblings, 2 replies; 3+ messages in thread
From: Vladislav Shpilevoy @ 2019-11-24 17:24 UTC (permalink / raw)
  To: tarantool-patches, kyukhin

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

 src/box/bootstrap.snap | Bin 5907 -> 5905 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)

diff --git a/src/box/bootstrap.snap b/src/box/bootstrap.snap
index 828bb5b2230add7882f80c1560d29199a308e98a..4e9955be811cc8ed0cf232c4d47053fcc989b569 100644
GIT binary patch
delta 2398
zcmV-k38D6rE|D&f7k@D=F)}hOXE8A}HezBoIAjV*ZgX^DZewLSATTpzGdMFgVJ&4g
zFgPtVGBIN<Ic7LyEn#FiVr6A!Wj8c5FbY;fY;R+0Iv{&}3JTS_3%bn~mjKT3m+SAP
z0000004TLD{QyvPv;Z2-pe{)ea9VXR%rL_YXN=*G0Wdkd#5&lPsq1<p@YU83jHM{B
zd@EB@luFjFsM#cGLO1sIaL)lHYU$J6;M)4_FZhAH6E-KsgIAh~1l9uFk<jrCv*RN(
zv(x(}Yc{k8?U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rg$XT7WKjZ35?7F5I%3HPD@9Zxg31t6grEg6148MCBp;;o
z5QPUQJ3P_BNe)eLK)T_`1|~Hup+U(ENn}70!;ycd?8^uSBQF%WP^1MSEDTvehzdk0
z4DkuF2M7v6Cj^=BqXZu$^cVq11Ri>J<k8`k0}qZnH|*F5p#}&vx@LSJqfQJuKh9Va
z$MBVG2|xSv=@SFq8iHxxb#e2TIVVO8hOcBxT3x%ZPhum?bhEDRTli<G*|sCo%>rLn
ziDQ3PvLyWEo2cd_##geWq!wXtb&Z~_iTRQ`8G}Yk8FfF&6(gmKYjFgnym}~ZUQ?|#
zUHcdLy?%vB47-vgA#-DTN2@B8Ya^s1BsI6}(eK*(Y-EI_)iynv!b9!&H{V^dR{y$A
z%*BJRh3L=UqimE%n|O;H-H(a2bfCmpIM``9;c_=IxZE6!WrHT&Z`WJmD;o5Ax116)
zW#Fsbcwm-z34>h^iLJ!3)p$NLw<WG}fv<-%b5mj}aCkQ|w<Ml|)w|_tI~x<zu4+$5
zJhK4zbi_(;cDx%JCQh=#<#Ior5=*J_vdejylm7~B0jra33rl}uA*rAu)KksZ`vCuV
zQJ?O{<Na)0*vJ3E^Yxgxhrju1O-u~bpKv}T<`GqELgF3nnOc*shRglJXki_#uV&Nj
zY$()k#{<KKb8uhJ%de-zIEc1d4(i5R;v1}Q_ZySMHio(#uE)EPS>hUL%-o!gm_~=I
UsDpDmno@{n006T$4B83-3i8x_AOHXW

-- 
2.21.0 (Apple Git-122.2)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-26  7:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-24 17:24 [Tarantool-patches] [PATCH 1/1] Fix bootstrap.snap corrupted file Vladislav Shpilevoy
2019-11-24 20:21 ` Vladislav Shpilevoy
2019-11-26  7:40 ` Kirill Yukhin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox