Moved the housekeeper heartbeat to a separate header for ease of integration.

This keeps the behavior the same but allows the heartbeat to be used as a crude timer
without including everything the housekeeper.h header includes.

Moved the protocol level updates on the DCBs last_read value into dcb_read.
This keeps the implementation nice and compact.
This commit is contained in:
Markus Makela
2015-02-24 05:00:16 +02:00
parent 4f108af0fb
commit aa4932bf2d
8 changed files with 39 additions and 28 deletions

View File

@ -144,9 +144,7 @@ char *password;
if ((n = dcb_read(dcb, &head)) != -1)
{
dcb->last_read = hkheartbeat;
if (head)
{
unsigned char *ptr = GWBUF_DATA(head);