Commit graph

19 commits

Author SHA1 Message Date
Roger A. Light
0665690c8a Windows build fix 2026-01-21 22:55:09 +00:00
Roger A. Light
2fb87f8cc7 Add missing header for strcasecmp 2026-01-21 22:25:20 +00:00
Roger A. Light
7ea73f6d60 Formatting: Forbid single line if statements
These hide cases from coverage checks
2025-09-17 12:48:02 +01:00
Roger A. Light
d743413ac3 Formatting: Spacing consistency 2025-09-17 12:03:06 +01:00
Roger A. Light
67ad22df0a Formatting: Double space before functions. 2025-09-17 12:03:03 +01:00
Norbert Heusser
424df70395 Add support for will message to persistence API and Sqlite3 persistence plugin
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2025-07-10 00:52:33 +01:00
Roger A. Light
d17a88d916 Refactor headers for easier discovery. 2023-12-23 12:59:58 +00:00
Roger A. Light
da0eab36a4 Remove unused events 2023-01-16 22:49:31 +00:00
Roger A. Light
16feb14a57 Persistence interface updates and sqlite plugin fixes
The MOSQ_EVT_PERSIST_CLIENT_MSG_CLEAR event has been removed, due to
never being called. It is the responsibility of the plugin to remove
client subscriptions and client messages when the client is removed.

Lots of persist test improvements and additions - mostly checking item
counts.
2022-10-09 22:17:47 +01:00
Roger A. Light
dd34b707ac Fix Coverity Scan 1490914. 2022-08-01 23:06:23 +01:00
Roger A. Light
11b16756cb Windows fixes. 2022-07-21 15:51:52 +01:00
Roger A. Light
2c8dc3968e Migrate persist-sqlite to use persistence_location. 2022-05-18 15:11:13 +01:00
Roger A. Light
ab1803d72f Fix casting. 2022-04-29 22:12:55 +01:00
Abilio Marques
82b6eaa31d Persist-sqlite: add flush_period and page_size options
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2022-04-29 07:35:47 +02:00
Roger A. Light
cbb01193a0 Rename persist retain_add to retain_set 2022-03-01 20:55:56 +00:00
Roger A. Light
2d3b152a22 Rename of mosquitto_msg_store struct.
struct mosquitto_msg_store -> struct mosquitto_base_msg

This is the base message which client messages and retained messages
refer to. The base messages are still held in the message store.

This change comes about because the persistence interface exposes these
message types. Prior to this commit the different messages were "msg",
"client_msg", and "retain". After this commit there is "base_msg",
"client_msg", and and "retain_msg" in the persist interface.
2022-03-01 10:44:47 +00:00
Roger A. Light
d2f598b6f6 persist-sqlite: commit transactions once every 5 seconds 2022-03-01 10:44:47 +00:00
Roger A. Light
d3f0d28d65 Persist-sqlite: Default to "normal" synchronous mode. 2022-02-06 21:36:45 +00:00
Roger A. Light
dc906c5221 Sqlite persistence plugin. 2022-01-09 23:54:09 +00:00