revision-id: 2e75f1575bb5890b85e128739c94c925666219e7 (mariadb-10.1.35-80-g2e75f1575bb) parent(s): b4c5059b88e414727f9c2952f56f54c1bb88ba79 author: Jan Lindström committer: Jan Lindström timestamp: 2018-10-05 18:13:44 +0300 message: Test 3. --- storage/innobase/fts/fts0fts.cc | 2 +- storage/xtradb/fts/fts0fts.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/innobase/fts/fts0fts.cc b/storage/innobase/fts/fts0fts.cc index 24fac4ece50..d947e9674a9 100644 --- a/storage/innobase/fts/fts0fts.cc +++ b/storage/innobase/fts/fts0fts.cc @@ -2768,7 +2768,7 @@ fts_cmp_set_sync_doc_id( mutex_enter(&cache->doc_id_lock); /* For each sync operation, we will add next_doc_id by 1, so to mark a sync operation */ - if (cache->next_doc_id < cache->synced_doc_id + 1) { + if (cache->next_doc_id <= cache->synced_doc_id) { cache->next_doc_id = cache->synced_doc_id + 1; } mutex_exit(&cache->doc_id_lock); diff --git a/storage/xtradb/fts/fts0fts.cc b/storage/xtradb/fts/fts0fts.cc index eaba30820e0..f064e5a0abe 100644 --- a/storage/xtradb/fts/fts0fts.cc +++ b/storage/xtradb/fts/fts0fts.cc @@ -2767,7 +2767,7 @@ fts_cmp_set_sync_doc_id( mutex_enter(&cache->doc_id_lock); /* For each sync operation, we will add next_doc_id by 1, so to mark a sync operation */ - if (cache->next_doc_id < cache->synced_doc_id + 1) { + if (cache->next_doc_id <= cache->synced_doc_id) { cache->next_doc_id = cache->synced_doc_id + 1; } mutex_exit(&cache->doc_id_lock);