2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 22:15:23 +00:00

[master] Lease and host back ends now validate schema version during open

Merge branch 'trac5629'
This commit is contained in:
Thomas Markwalder
2018-06-01 08:25:25 -04:00
13 changed files with 234 additions and 111 deletions

View File

@@ -257,6 +257,11 @@ public:
/// @brief Returns backend version.
///
/// The method is called by the constructor after opening the database
/// but prior to preparing SQL statements, to verify that the schema version
/// is correct. Thus it must not rely on a pre-prepared statement or
/// formal statement execution error checking.
///
/// @return Version number stored in the database, as a pair of unsigned
/// integers. "first" is the major version number, "second" the
/// minor number.