2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-02 23:15:20 +00:00

[3673] Updated comments about the max timestamp for the MySQL and PgSQL.

This commit is contained in:
Marcin Siodelski
2015-03-11 20:20:09 +01:00
parent 4ba876edc5
commit f48f9ebae5
2 changed files with 6 additions and 5 deletions

View File

@@ -1287,7 +1287,8 @@ MySqlLeaseMgr::convertToDatabaseTime(const time_t cltt,
int64_t expire_time_64 = static_cast<int64_t>(cltt) +
static_cast<int64_t>(valid_lifetime);
// Prevent too large value.
// Even on 64-bit systems MySQL doesn't seem to accept the timestamps
// beyond the max value of int32_t.
if (expire_time_64 > LeaseMgr::MAX_DB_TIME) {
isc_throw(BadValue, "Time value is too large: " << expire_time_64);
}