Fix autosave_interval not being triggered by messages being delivered.

Closes #1726. Thanks to nduhme.
This commit is contained in:
Roger A. Light 2020-07-15 19:29:40 +01:00
parent 4e0312c55f
commit b4e0dfa598
2 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,8 @@ Broker:
- Fix bridge topic remapping when using "" as the topic. Closes #1749. - Fix bridge topic remapping when using "" as the topic. Closes #1749.
- Fix messages being queued for disconnected bridges when clean start was - Fix messages being queued for disconnected bridges when clean start was
set to true. Closes #1729. set to true. Closes #1729.
- Fix `autosave_interval` not being triggered by messages being delivered.
Closes #1726.
Client library: Client library:
- Improved documentation around connect callback return codes. Close #1730. - Improved documentation around connect callback return codes. Close #1730.

View File

@ -339,6 +339,9 @@ int db__message_delete_outgoing(struct mosquitto_db *db, struct mosquitto *conte
} }
db__message_dequeue_first(context, &context->msgs_out); db__message_dequeue_first(context, &context->msgs_out);
} }
#ifdef WITH_PERSISTENCE
db->persistence_changes++;
#endif
return MOSQ_ERR_SUCCESS; return MOSQ_ERR_SUCCESS;
} }