diff options
author | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2025-09-23 13:29:51 +0100 |
---|---|---|
committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2025-09-23 13:29:51 +0100 |
commit | 4785b4d8c5bac4e03ed8dd2a4c01ec098da60d7b (patch) | |
tree | 9049ebcef6ff240cedfdc38704feaf17c2ac91b1 /src/ingestor.cpp | |
parent | df38ef1ec9af4f3f893323ed5c10e25fa481b1c6 (diff) | |
download | webstat-4785b4d8c5bac4e03ed8dd2a4c01ec098da60d7b.tar.bz2 webstat-4785b4d8c5bac4e03ed8dd2a4c01ec098da60d7b.tar.xz webstat-4785b4d8c5bac4e03ed8dd2a4c01ec098da60d7b.zip |
Make DB pool protected for access from unit tests
Diffstat (limited to 'src/ingestor.cpp')
-rw-r--r-- | src/ingestor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ingestor.cpp b/src/ingestor.cpp index c54ca53..e1cc7c6 100644 --- a/src/ingestor.cpp +++ b/src/ingestor.cpp @@ -59,7 +59,7 @@ namespace WebStat { } Ingestor::Ingestor(const utsname & host, DB::ConnectionPoolPtr dbpl) : - hostnameId {crc32(host.nodename)}, dbpool {std::move(dbpl)}, curl {curl_multi_init()} + dbpool {std::move(dbpl)}, hostnameId {crc32(host.nodename)}, curl {curl_multi_init()} { auto dbconn = dbpool->get(); auto ins = dbconn->modify(SQL::HOST_UPSERT, SQL::HOST_UPSERT_OPTS); |