summaryrefslogtreecommitdiff
path: root/src/ingestor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ingestor.cpp')
-rw-r--r--src/ingestor.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ingestor.cpp b/src/ingestor.cpp
index a5a2e57..4084d2e 100644
--- a/src/ingestor.cpp
+++ b/src/ingestor.cpp
@@ -41,7 +41,11 @@ namespace WebStat {
}
}
- Ingestor::Ingestor(DB::ConnectionPtr dbconn) : dbconn {std::move(dbconn)} { }
+ Ingestor::Ingestor(const std::string_view hostname, DB::ConnectionPtr dbconn) :
+ hostnameId {crc32(hostname)}, dbconn {std::move(dbconn)}
+ {
+ storeEntity({hostnameId, hostname});
+ }
Ingestor::ScanResult
Ingestor::scanLogLine(std::string_view input)