From dd02e9f0aaca21d2b55061c48c73ccf9b35fbec8 Mon Sep 17 00:00:00 2001 From: Adrian Zawadzki Date: Tue, 9 Dec 2025 12:24:08 +0100 Subject: [PATCH 1/2] fix(build): fixed build on debug --- src/dbzero/bindings/python/PyInternalAPI.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dbzero/bindings/python/PyInternalAPI.cpp b/src/dbzero/bindings/python/PyInternalAPI.cpp index 02c3fe4a..887565f7 100644 --- a/src/dbzero/bindings/python/PyInternalAPI.cpp +++ b/src/dbzero/bindings/python/PyInternalAPI.cpp @@ -1039,15 +1039,13 @@ namespace db0::python auto result = Py_OWN(tryCopyPrefixImpl(*storage, output_file_name, page_io_step_size, meta_io_step_size)); storage->close(); return result.steal(); - if (!result) { - return nullptr; - } } catch (...) { if (storage) { storage->close(); } throw; } + return nullptr; } template PyObject *getMaterializedMemoObject(MemoObject *); From fa9bdb5a847cc3dc5b273efbda09da97efcf4caa Mon Sep 17 00:00:00 2001 From: Adrian Zawadzki Date: Tue, 9 Dec 2025 12:34:55 +0100 Subject: [PATCH 2/2] fix(build): added optional --- src/dbzero/core/memory/utils.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dbzero/core/memory/utils.hpp b/src/dbzero/core/memory/utils.hpp index 75099b23..b60107c3 100644 --- a/src/dbzero/core/memory/utils.hpp +++ b/src/dbzero/core/memory/utils.hpp @@ -6,6 +6,7 @@ #include #include #include +#include #include "config.hpp" #include "Address.hpp" #include