From e8337fdee04b30524a02a1a9005a07d9695d128c Mon Sep 17 00:00:00 2001 From: joonmin83 Date: Sat, 23 Nov 2024 00:00:24 +0900 Subject: [PATCH] [CBRD-25602] Fix assert() when executing drop table with vacuum_disable=y --- src/query/vacuum.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/query/vacuum.c b/src/query/vacuum.c index f8b0bba40f9..6caefde2b85 100644 --- a/src/query/vacuum.c +++ b/src/query/vacuum.c @@ -6068,6 +6068,11 @@ vacuum_log_add_dropped_file (THREAD_ENTRY * thread_p, const VFID * vfid, const O LOG_DATA_ADDR addr; VACUUM_DROPPED_FILES_RCV_DATA rcv_data; + if (prm_get_bool_value (PRM_ID_DISABLE_VACUUM)) + { + return; + } + vacuum_er_log (VACUUM_ER_LOG_DROPPED_FILES, "Append %s log from dropped file %d|%d.", pospone_or_undo ? "postpone" : "undo", vfid->volid, vfid->fileid);