Store table version in struct osl_table.
[osl.git] / osl_core.h
index 9f3118114ff20c593882159efd4b688ffed632a0..9879b1e316d1e358fe110d1b6fb31a1f95ef96ad 100644 (file)
@@ -38,6 +38,13 @@ struct osl_column {
 struct osl_table {
        /** Pointer to the table description */
        const struct osl_table_description *desc;
+       /**
+        * The CURRENT_TABLE_VERSION value of the library which created the
+        * table. This value is stored in the index header at table creation
+        * time. When the table is opened, the field is initialized from the
+        * on-disk value.
+        */
+       uint8_t version;
        /** The size of the index header of this table. */
        uint16_t index_header_size;
        /** Contains the mapping of the table's index file */