From 0992b3e2c20e587d5bfdd408720871634bd52426 Mon Sep 17 00:00:00 2001 From: yahong Date: Thu, 12 Dec 2024 22:29:14 +0900 Subject: [PATCH] [CBRD-25509] Add assert to make sure the previous condition is always false. --- src/storage/heap_file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/storage/heap_file.c b/src/storage/heap_file.c index 6ec66cab9c7..0338ea4f886 100644 --- a/src/storage/heap_file.c +++ b/src/storage/heap_file.c @@ -3567,6 +3567,8 @@ heap_stats_find_best_page (THREAD_ENTRY * thread_p, const HFID * hfid, int neede if (isnew_rec == true) { heap_hdr->estimates.num_recs += 1; + + assert (!heap_is_big_length (newrec_size)); } heap_hdr->estimates.recs_sumlen += (float) newrec_size;