Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/topic/robin/change-port'
Browse files Browse the repository at this point in the history
* origin/topic/robin/change-port:
  Fix problem with column caching.
  Adapt to package's new default listening port.
  • Loading branch information
rsmmr committed Feb 22, 2022
2 parents 6959d07 + f1d7e0f commit ca29369
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.0.3 | 2022-02-22 13:36:47 +0100

* Adapt to package's new default listening port.

* Fix problem with column caching.

2.0.2 | 2022-02-21 16:36:16 +0100

* Push all asynchronous activity to the main thread to avoid most
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.2
2.0.3
11 changes: 7 additions & 4 deletions src/core/database.cc
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,13 @@ Interval Database::Implementation::timerCallback(timer::ID id) {
else
cannot_be_reached();

if ( sql_result->columns.empty() )
// If a result is empty, columns won't be set. Reuse the previous one then because for diffs we may still be
// sending (removed) rows back.
sql_result->columns = (*i)->previous_result->columns;
if ( sql_result->columns.empty() ) {
if ( (*i)->previous_result )
// If a result is empty, columns won't be set. Reuse the previous
// one then because for diffs we may still be
// sending (removed) rows back.
sql_result->columns = (*i)->previous_result->columns;
}

#ifndef NDEBUG
else if ( (*i)->previous_result ) {
Expand Down
2 changes: 1 addition & 1 deletion src/io/zeek.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class BrokerConnection {
Result<Nothing> BrokerConnection::connect(const std::string& destination) {
// Parse "host[:port]".
std::string address;
unsigned long port = 9999; // default Broker port
unsigned long port = 9998; // default port used by the zeek-agent package

try {
auto m = split(trim(destination), ":");
Expand Down
2 changes: 1 addition & 1 deletion zeek-agent

0 comments on commit ca29369

Please sign in to comment.