Issue - (#4): Missed to update the "total_calls" when executing the same query multiple times.

Forgot to update the "total_calls" column when a query executes
multipletimes, during refactoring.
pull/9/head
Ibrar Ahmed 2019-11-20 12:00:00 +00:00
parent 56d8375c38
commit 8286fc44b0
1 changed files with 1 additions and 1 deletions

View File

@ -3472,7 +3472,7 @@ update_agg_counters(uint64 queryid, uint64 id, uint64 type)
entry->key.queryid = queryid;
entry->key.id = id;
entry->key.type = key.type;
entry->counters.total_calls = 1;
entry->counters.total_calls++;
if (entry->counters.total_calls == 1)
entry->counters.first_call_time = GetCurrentTimestamp();
entry->counters.last_call_time= GetCurrentTimestamp();