summaryrefslogtreecommitdiff
path: root/src/ingestor.hpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2025-09-23 13:29:51 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2025-09-23 13:29:51 +0100
commit4785b4d8c5bac4e03ed8dd2a4c01ec098da60d7b (patch)
tree9049ebcef6ff240cedfdc38704feaf17c2ac91b1 /src/ingestor.hpp
parentdf38ef1ec9af4f3f893323ed5c10e25fa481b1c6 (diff)
downloadwebstat-4785b4d8c5bac4e03ed8dd2a4c01ec098da60d7b.tar.bz2
webstat-4785b4d8c5bac4e03ed8dd2a4c01ec098da60d7b.tar.xz
webstat-4785b4d8c5bac4e03ed8dd2a4c01ec098da60d7b.zip
Make DB pool protected for access from unit tests
Diffstat (limited to 'src/ingestor.hpp')
-rw-r--r--src/ingestor.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ingestor.hpp b/src/ingestor.hpp
index a0dd1b9..ffdcc9a 100644
--- a/src/ingestor.hpp
+++ b/src/ingestor.hpp
@@ -34,6 +34,8 @@ namespace WebStat {
std::string userAgentAPI = "https://useragentstring.com";
protected:
+ DB::ConnectionPoolPtr dbpool;
+
size_t linesRead = 0;
size_t linesParsed = 0;
size_t linesDiscarded = 0;
@@ -48,7 +50,6 @@ namespace WebStat {
using CurlOperations = std::map<CURL *, std::unique_ptr<CurlOperation>>;
mutable std::flat_set<Crc32Value> existingEntities;
uint32_t hostnameId;
- DB::ConnectionPoolPtr dbpool;
CurlMultiPtr curl;
mutable CurlOperations curlOperations;
};