Commit graph

18 commits

Author SHA1 Message Date
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
Norbert Heusser
d4216c8cb6 Fixed CMakeLists.txt
* Addded missing files plugin_subscribe and plugin_unsubscribe to src/CMakeLists.txt
* Aligned mixed usage of all-keyword and all-plain in target_link_libra…ry definition in in CMakeLists.txt

Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2022-04-06 10:26:03 +00:00
Roger A. Light
5ab7603811 Fix Coverity Scan 1486934 Unchecked return value 2022-03-24 10:17:15 +00:00
Roger A. Light
27b4a6aa33 Fix Coverity Scan 1487012 Resource leak 2022-03-24 09:06:33 +00:00
Roger A. Light
b3096982b5 Fix Coverity Scan 1486953 Use after free 2022-03-24 08:11:11 +00:00
Roger A. Light
07b7533b1e Fix Coverity Scan 1486947 Double free 2022-03-24 08:11:11 +00:00
Roger A. Light
c661f475b4 Coverity Scan fixes - Invalid type in argument to printf format specifier
1453805
1453806
1486939
1486954
1486955
1486956
1486960
2022-03-24 08:11:11 +00:00
Roger A. Light
7939633114 Optimise persist client msg clearing. 2022-03-18 11:08:18 +00:00
Roger A. Light
0a4a029fbf Persist plugin: Simplify cases where we don't take a copy.
Some members of the persist plugin interface are only used to find a
client struct, for example. There is no need for the plugin to allocate
a new copy and the broker to free it in that case.
2022-03-16 22:18:45 +00: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
a0f58f20c3 Update threaded builds.
Most specifically use -pthread instead of -lpthread.
2022-02-09 22:19:35 +00:00
Roger A. Light
5a3b42d4a4 Use path vars in Makefiles. 2022-02-09 14:44:09 +00:00
Roger A. Light
d3f0d28d65 Persist-sqlite: Default to "normal" synchronous mode. 2022-02-06 21:36:45 +00:00
Roger A. Light
374f547b64 Persist sqlite: Store client connection time. 2022-02-06 21:12:12 +00:00
Roger A. Light
bc1adfd46d CMake fixes.
Builtin websockets support.
Persist sqlite plugin build.
Broker cJSON support
Add wildcard-temp plugin.
2022-02-04 22:28:26 +00:00
Roger A. Light
dc906c5221 Sqlite persistence plugin. 2022-01-09 23:54:09 +00:00