]> git.ipfire.org Git - thirdparty/kea.git/commit
[#714,!409] Try to update an option followed by insert.
authorMarcin Siodelski <marcin@isc.org>
Wed, 3 Jul 2019 12:14:26 +0000 (14:14 +0200)
committerMarcin Siodelski <marcin@isc.org>
Thu, 4 Jul 2019 19:48:15 +0000 (15:48 -0400)
commitc8a627d0eda0264b6eaec69bc70b78c136e0e15f
tree74386d1fb55374d76b26c25071f827e309460bd4
parented7befb61639f9f736cbc5140597f81e28e0850c
[#714,!409] Try to update an option followed by insert.

Previously we'd first fetch the option to check if it exists, then update
or insert but that would always trigger two queries. Now we're down to
one query if the option already exists.
src/hooks/dhcp/mysql_cb/mysql_cb_dhcp4.cc
src/hooks/dhcp/mysql_cb/mysql_cb_dhcp6.cc