From b6ec5366d4015588e9f13b394edc4d6817594fda Mon Sep 17 00:00:00 2001 From: yahong Date: Mon, 16 Dec 2024 22:43:21 +0900 Subject: [PATCH] [CBRD-25509] Make assert concisely. --- src/storage/heap_file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/storage/heap_file.c b/src/storage/heap_file.c index 0338ea4f88..ae135e880e 100644 --- a/src/storage/heap_file.c +++ b/src/storage/heap_file.c @@ -3564,15 +3564,14 @@ heap_stats_find_best_page (THREAD_ENTRY * thread_p, const HFID * hfid, int neede heap_hdr = (HEAP_HDR_STATS *) hdr_recdes.data; + assert (!heap_is_big_length (needed_space) && !heap_is_big_length (newrec_size)); + 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; - assert (!heap_is_big_length (needed_space)); /* Take into consideration the unfill factor for pages with objects */ total_space = needed_space + heap_Slotted_overhead + heap_hdr->unfill_space; if (heap_is_big_length (total_space))