Skip to content

Commit

Permalink
[CBRD-25509] Make assert concisely.
Browse files Browse the repository at this point in the history
  • Loading branch information
hyahong committed Dec 16, 2024
1 parent a0f5cba commit b6ec536
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/storage/heap_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b6ec536

Please sign in to comment.