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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user