Commit 6ae529cd authored by Geoff Simmons's avatar Geoff Simmons

[varnishevent] [LHDO-2557] seen counter increments for every tx read

               from VSL (regardless of whether it gets discarded)
parent 89a40ef6
...@@ -258,6 +258,7 @@ event(struct VSL_data *vsl, struct VSL_transaction * const pt[], void *priv) ...@@ -258,6 +258,7 @@ event(struct VSL_data *vsl, struct VSL_transaction * const pt[], void *priv)
if (debug) if (debug)
LOG_Log(LOG_DEBUG, "Tx: [%u %c]", t->vxid, tx_type_name[t->type]); LOG_Log(LOG_DEBUG, "Tx: [%u %c]", t->vxid, tx_type_name[t->type]);
seen++;
tx = take_tx(); tx = take_tx();
if (tx == NULL) { if (tx == NULL) {
no_free_tx++; no_free_tx++;
...@@ -393,7 +394,6 @@ event(struct VSL_data *vsl, struct VSL_transaction * const pt[], void *priv) ...@@ -393,7 +394,6 @@ event(struct VSL_data *vsl, struct VSL_transaction * const pt[], void *priv)
assert(tx->state == TX_OPEN); assert(tx->state == TX_OPEN);
tx->state = TX_DONE; tx->state = TX_DONE;
seen++;
MON_StatsUpdate(STATS_DONE, nrec, total_chunks); MON_StatsUpdate(STATS_DONE, nrec, total_chunks);
if (tx_occ > tx_occ_hi) if (tx_occ > tx_occ_hi)
tx_occ_hi = tx_occ; tx_occ_hi = tx_occ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment