Integrate Supervisor code review suggestions

This commit is contained in:
Jon Siwek 2020-07-09 13:15:00 -07:00
parent 10709c627b
commit 7669f560d1
7 changed files with 61 additions and 54 deletions

View file

@ -1505,8 +1505,8 @@ std::string Manager::FormatRotationPath(zeek::EnumValPtr writer,
{
auto ri = zeek::make_intrusive<zeek::RecordVal>(zeek::BifType::Record::Log::RotationFmtInfo);
ri->Assign(0, std::move(writer));
ri->Assign<zeek::TimeVal>(2, open);
ri->Assign<zeek::StringVal>(1, path.size(), path.data());
ri->Assign<zeek::TimeVal>(2, open);
ri->Assign<zeek::TimeVal>(3, close);
ri->Assign(4, zeek::val_mgr->Bool(terminating));
ri->Assign<zeek::Val>(5, std::move(postprocessor));