Skip to content

Commit

Permalink
Fix autosave_interval not being triggered by messages being delivered.
Browse files Browse the repository at this point in the history
Closes #1726. Thanks to nduhme.
  • Loading branch information
ralight committed Jul 15, 2020
1 parent 4e0312c commit b4e0dfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.txt
Expand Up @@ -9,6 +9,8 @@ Broker:
- Fix bridge topic remapping when using "" as the topic. Closes #1749.
- Fix messages being queued for disconnected bridges when clean start was
set to true. Closes #1729.
- Fix `autosave_interval` not being triggered by messages being delivered.
Closes #1726.

Client library:
- Improved documentation around connect callback return codes. Close #1730.
Expand Down
3 changes: 3 additions & 0 deletions src/database.c
Expand Up @@ -339,6 +339,9 @@ int db__message_delete_outgoing(struct mosquitto_db *db, struct mosquitto *conte
}
db__message_dequeue_first(context, &context->msgs_out);
}
#ifdef WITH_PERSISTENCE
db->persistence_changes++;
#endif

return MOSQ_ERR_SUCCESS;
}
Expand Down

0 comments on commit b4e0dfa

Please sign in to comment.