From 4e033b940a22ed77a686571811bb4de451480b83 Mon Sep 17 00:00:00 2001 From: InChijun Date: Sun, 1 Dec 2024 22:44:50 +0900 Subject: [PATCH] [CBRD-24764] Fix start_vpid variable to not return NULL when max_bestspace_entries parameter is greater than zero --- src/storage/heap_file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/storage/heap_file.c b/src/storage/heap_file.c index 0afd46641b3..4d425cbede9 100644 --- a/src/storage/heap_file.c +++ b/src/storage/heap_file.c @@ -3751,6 +3751,7 @@ heap_stats_sync_bestspace (THREAD_ENTRY * thread_p, const HFID * hfid, HEAP_HDR_ search_all = true; start_pos = -1; next_vpid = heap_hdr->estimates.full_search_vpid; + start_vpid = next_vpid; } else {