[Tarantool-patches] [PATCH v2] replication: fix join vclock obtainment in relay_initial_join
Ilya Kosarev
i.kosarev at tarantool.org
Tue Oct 29 17:25:43 MSK 2019
Thanks!
It seems to be the best solution, solving the problem of ungrounded
wal_begin_checkpoint usage and in the same time providing direct vlock
obtainment. Sent v3 of the patch.
>Вторник, 29 октября 2019, 0:10 +03:00 от Konstantin Osipov < kostja.osipov at gmail.com >:
>
>* Vladislav Shpilevoy < v.shpilevoy at tarantool.org > [19/10/29 00:08]:
>> It looks wrong, that we do begin_checkpoint() but omit
>> commit_checkpoint(). I would call commit too. Probably now
>> begin() does not allocate any resources, but it may start
>> in future, and we will have a leak here.
>
>This would be wrong, too. Wal uses commit_checkpoint() as a singal
>that it can recycle wal logs. This is the code Georgy is moving to
>GC (but his patch is not in yet).
>
>One way to fix it would be to add vclock out parameter to
>wal_sync().
>
>--
>Konstantin Osipov, Moscow, Russia
--
Ilya Kosarev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.tarantool.org/pipermail/tarantool-patches/attachments/20191029/31813a1c/attachment.html>
More information about the Tarantool-patches
mailing list