From 425762105c4da5170314cda8aa86fc51471bb6c1 Mon Sep 17 00:00:00 2001 From: lidezhu <47731263+lidezhu@users.noreply.github.com> Date: Mon, 31 Oct 2022 13:41:58 +0800 Subject: [PATCH] Fix minor compaction after restart (#6199) close pingcap/tiflash#6159 --- dbms/src/Storages/DeltaMerge/Delta/DeltaPack_V3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dbms/src/Storages/DeltaMerge/Delta/DeltaPack_V3.cpp b/dbms/src/Storages/DeltaMerge/Delta/DeltaPack_V3.cpp index 51bf0d4dfef..5834db49960 100644 --- a/dbms/src/Storages/DeltaMerge/Delta/DeltaPack_V3.cpp +++ b/dbms/src/Storages/DeltaMerge/Delta/DeltaPack_V3.cpp @@ -42,6 +42,7 @@ void serializeSavedPacks_V3(WriteBuffer & buf, const DeltaPacks & packs) throw Exception("A data pack without schema: " + pack->toString(), ErrorCodes::LOGICAL_ERROR); bool save_schema = cur_schema != last_schema; + last_schema = cur_schema; pack->serializeMetadata(buf, save_schema); break; }