mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-02 23:15:20 +00:00
[3968] Added ASC sorting for indexes by expiration.
This commit is contained in:
@@ -143,7 +143,7 @@ TaggedStatement tagged_statements[] = {
|
||||
"state "
|
||||
"FROM lease4 "
|
||||
"WHERE state != ? AND expire < ? "
|
||||
"ORDER BY expire "
|
||||
"ORDER BY expire ASC "
|
||||
"LIMIT ?"},
|
||||
{MySqlLeaseMgr::GET_LEASE6_ADDR,
|
||||
"SELECT address, duid, valid_lifetime, "
|
||||
@@ -182,7 +182,7 @@ TaggedStatement tagged_statements[] = {
|
||||
"state "
|
||||
"FROM lease6 "
|
||||
"WHERE state != ? AND expire < ? "
|
||||
"ORDER BY expire "
|
||||
"ORDER BY expire ASC "
|
||||
"LIMIT ?"},
|
||||
{MySqlLeaseMgr::GET_VERSION,
|
||||
"SELECT version, minor FROM schema_version"},
|
||||
|
Reference in New Issue
Block a user