mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Bugfixes
This commit is contained in:
parent
29fc56105d
commit
ffb4094d36
9 changed files with 35 additions and 40 deletions
|
@ -55,12 +55,13 @@ public:
|
|||
|
||||
using namespace logging;
|
||||
|
||||
WriterBackend::WriterBackend(const string& name) : MsgThread(name)
|
||||
WriterBackend::WriterBackend(WriterFrontend* arg_frontend, const string& name) : MsgThread(name)
|
||||
{
|
||||
path = "<not set>";
|
||||
num_fields = 0;
|
||||
fields = 0;
|
||||
buffering = true;
|
||||
frontend = arg_frontend;
|
||||
}
|
||||
|
||||
WriterBackend::~WriterBackend()
|
||||
|
@ -100,10 +101,8 @@ void WriterBackend::DisableFrontend()
|
|||
SendOut(new DisableMessage(frontend));
|
||||
}
|
||||
|
||||
bool WriterBackend::Init(WriterFrontend* arg_frontend, string arg_path, int arg_num_fields,
|
||||
const Field* const* arg_fields)
|
||||
bool WriterBackend::Init(string arg_path, int arg_num_fields, const Field* const* arg_fields)
|
||||
{
|
||||
frontend = arg_frontend;
|
||||
path = arg_path;
|
||||
num_fields = arg_num_fields;
|
||||
fields = arg_fields;
|
||||
|
@ -227,6 +226,7 @@ bool WriterBackend::Finish()
|
|||
bool WriterBackend::DoHeartbeat(double network_time, double current_time)
|
||||
{
|
||||
SendOut(new FlushWriteBufferMessage(frontend));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue