Skip to content

Commit

Permalink
sql destination: memory usage counter was missing
Browse files Browse the repository at this point in the history
Signed-off-by: Antal Nemes <antal.nemes@balabit.com>
  • Loading branch information
furiel committed May 30, 2017
1 parent 8adbc21 commit 54541e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/afsql/afsql.c
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,7 @@ afsql_dd_init(LogPipe *s)
afsql_dd_format_stats_instance(self) );
stats_register_counter(0, &sc_key, SC_TYPE_QUEUED, &self->queued_messages);
stats_register_counter(0, &sc_key, SC_TYPE_DROPPED, &self->dropped_messages);
stats_register_counter(0, &sc_key, SC_TYPE_MEMORY_USAGE, &self->memory_usage);
}
stats_unlock();

Expand Down Expand Up @@ -1326,6 +1327,7 @@ afsql_dd_init(LogPipe *s)
afsql_dd_format_stats_instance(self) );
stats_unregister_counter(&sc_key, SC_TYPE_QUEUED, &self->queued_messages);
stats_unregister_counter(&sc_key, SC_TYPE_DROPPED, &self->dropped_messages);
stats_unregister_counter(&sc_key, SC_TYPE_MEMORY_USAGE, &self->memory_usage);
}
stats_unlock();

Expand Down

0 comments on commit 54541e1

Please sign in to comment.