From 17d001b164f9ddf487fd3453dce875477e140d1b Mon Sep 17 00:00:00 2001 From: Barak Amar Date: Sun, 6 Dec 2020 17:43:51 +0200 Subject: [PATCH] bug fix merge apply diff closed on error channel --- catalog/mvcc/cataloger_merge.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/catalog/mvcc/cataloger_merge.go b/catalog/mvcc/cataloger_merge.go index cfb4054041f..10942345e05 100644 --- a/catalog/mvcc/cataloger_merge.go +++ b/catalog/mvcc/cataloger_merge.go @@ -128,7 +128,9 @@ func (c *cataloger) doMerge(ctx context.Context, tx db.Tx, params doDiffParams, } } case err := <-errChan: - return rowsCounter, err + if err != nil { + return rowsCounter, err + } } } }