Skip to content

Commit

Permalink
[CBRD-25509] Add assert to make sure the previous condition is always…
Browse files Browse the repository at this point in the history
… false.
  • Loading branch information
hyahong committed Dec 12, 2024
1 parent 8f045a7 commit 0992b3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/storage/heap_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0992b3e

Please sign in to comment.