From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Alexander Turenko Subject: [PATCH 0/2] Fix tarantoolctl cat/play premature stop Date: Wed, 20 Mar 2019 21:41:12 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: Vladimir Davydov Cc: Alexander Turenko , tarantool-patches@freelists.org List-ID: https://github.com/tarantool/tarantool/issues/3827 https://github.com/tarantool/tarantool/tree/Totktonada/gh-3827-fix-tarantoolctl-cat-premature-stop tarantoolctl cat/play now don't miss records which match a user-provided arguments. It was possible when records from several masters (with different replica_id parameters) reside in a file and --to argument is provided. A first record with LSN equal or above a 'to' value did cause stop the file processing, but it is possible that there are records with lesser LSN from another masters. Now we stop only when one explicit --replica argument is provided. The patchset is splitted into two patches: refactoring w/o behaviour changes (+test) and the patch that fixes the behaviour. Alexander Turenko (2): Unify tarantoolctl cat/play xlog filtering code Fix tarantoolctl cat/play premature stop with --to extra/dist/tarantoolctl.in | 124 +++++++++++++-------- test/app-tap/tarantoolctl.test.lua | 172 ++++++++++++++++++++++++++++- 2 files changed, 244 insertions(+), 52 deletions(-) -- 2.20.1