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

New catalog version for new WAL entry type.


diffs (53 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_JAN2022 52301  /* first in Jan2022 */
 #define CATALOG_SEP2022 52302  /* first in Sep2022 */
 #define CATALOG_AUG2024 52303  /* first in Aug2024 */
+#define CATALOG_MAR2025 52304  /* first in Mar2025 */
 
 /* Note, CATALOG version 52300 is the first one where the basic system
  * tables (the ones created in store.c) have fixed and unchangeable
@@ -65,6 +66,14 @@ bl_preversion(sqlstore *store, int oldve
        }
 #endif
 
+#ifdef CATALOG_MAR2025
+       if (oldversion == CATALOG_MAR2025) {
+               /* upgrade to default releases */
+               store->catalog_version = oldversion;
+               return GDK_SUCCEED;
+       }
+#endif
+
        return GDK_FAIL;
 }
 
@@ -942,6 +951,12 @@ bl_postversion(void *Store, logger *lg)
        }
 #endif
 
+#ifdef CATALOG_MAR2025
+       if (store->catalog_version <= CATALOG_MAR2025) {
+               /* nothing to do */
+       }
+#endif
+
        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
@@ -22,8 +22,8 @@
 #include "bat/bat_table.h"
 #include "bat/bat_logger.h"
 
-/* version 05.23.04 of catalog */
-#define CATALOG_VERSION 52304  /* first after Aug2024 */
+/* version 05.23.05 of catalog */
+#define CATALOG_VERSION 52305  /* first after Mar2025 */
 
 ulng
 store_function_counter(sqlstore *store)
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to