From aaa0b462d9504a5713168279ae56ef38c5f4ff8a Mon Sep 17 00:00:00 2001 From: Ally Heev Date: Sat, 30 May 2026 15:56:30 +0530 Subject: [PATCH] fix buffer manager frame group limit err msg --- src/storage/buffer_manager/vm_region.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/storage/buffer_manager/vm_region.cpp b/src/storage/buffer_manager/vm_region.cpp index 0e5d48d162..5c31b967dd 100644 --- a/src/storage/buffer_manager/vm_region.cpp +++ b/src/storage/buffer_manager/vm_region.cpp @@ -86,7 +86,10 @@ frame_group_idx_t VMRegion::addNewFrameGroup() { std::unique_lock xLck{mtx}; if (numFrameGroups >= maxNumFrameGroups) { // LCOV_EXCL_START - throw BufferManagerException("No more frame groups can be added to the allocator."); + throw BufferManagerException( + std::format("Maximum database size of {} bytes has been reached. " + "Reopen the database with a larger max_db_size to continue.", + getMaxRegionSize())); // LCOV_EXCL_STOP } return numFrameGroups++;