Fix writeq_high_water and writeq_low_water

The parameters were never read at startup and could not be modified at
runtime. Also the values were only read once at startup.
This commit is contained in:
Markus Mäkelä
2018-10-19 13:09:39 +03:00
parent d89cfc1810
commit 4be5d9267d
4 changed files with 126 additions and 38 deletions

View File

@ -193,6 +193,8 @@ DCB* dcb_alloc(dcb_role_t role, SERV_LISTENER* listener)
newdcb->dcb_role = role;
newdcb->listener = listener;
newdcb->last_read = mxs_clock();
newdcb->low_water = config_writeq_low_water();
newdcb->high_water = config_writeq_high_water();
if (role == DCB_ROLE_SERVICE_LISTENER)
{