Changeset: 5e6d3f5cabfa for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/5e6d3f5cabfa
Modified Files:
        sql/storage/bat/bat_logger.c
        sql/storage/store.c
Branch: ustr
Log Message:

Update WAL version number since we have a new WAL entry type.


diffs (47 lines):

diff --git a/sql/storage/bat/bat_logger.c b/sql/storage/bat/bat_logger.c
--- a/sql/storage/bat/bat_logger.c
+++ b/sql/storage/bat/bat_logger.c
@@ -21,6 +21,7 @@
 #define CATALOG_AUG2024 52303  /* first in Aug2024 */
 #define CATALOG_MAR2025 52304  /* first in Mar2025 */
 #define CATALOG_DEC2025 52305  /* first in Dec2025 */
+#define CATALOG_DEC2025_1 52306        /* first in Dec2025-SP1 */
 
 /* Note, CATALOG version 52300 is the first one where the basic system
  * tables (the ones created in store.c) have fixed and unchangeable
@@ -123,6 +124,14 @@ bl_preversion(sqlstore *store, int oldve
        }
 #endif
 
+#ifdef CATALOG_DEC2025_1
+       if (oldversion == CATALOG_DEC2025_1) {
+               /* upgrade to default releases */
+               store->catalog_version = oldversion;
+               return GDK_SUCCEED;
+       }
+#endif
+
        return GDK_FAIL;
 }
 
@@ -1073,6 +1082,8 @@ bl_postversion(void *Store, logger *lg)
        }
 #endif
 
+       /* no special handling for CATALOG_DEC2025_1 */
+
        return GDK_SUCCEED;
 }
 
diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -20,7 +20,7 @@
 #include "bat/bat_logger.h"
 
 /* version 05.23.05 of catalog */
-#define CATALOG_VERSION 52306  /* first in Dec2025-SP1 */
+#define CATALOG_VERSION 52307  /* first after Dec2025 */
 
 static void
 obj_lock_init( MT_Lock *l, char c, sqlid id)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to