From 3934b8c8bad1722ccd5299db76172da611b2651c Mon Sep 17 00:00:00 2001 From: Keith Rarick Date: Sat, 12 May 2012 04:53:45 -0700 Subject: [PATCH] count puts like any other command --- prot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prot.c b/prot.c index 5663430..aad793b 100644 --- a/prot.c +++ b/prot.c @@ -830,7 +830,6 @@ enqueue_incoming_job(Conn *c) r = enqueue_job(c->srv, j, j->r.delay, 1); if (r < 0) return reply_serr(c, MSG_INTERNAL_ERROR); - op_ct[OP_PUT]++; /* stats */ global_stat.total_jobs_ct++; j->tube->stat.total_jobs_ct++; @@ -1201,6 +1200,8 @@ dispatch_cmd(Conn *c) body_size = strtoul(size_buf, &end_buf, 10); if (errno) return reply_msg(c, MSG_BAD_FORMAT); + op_ct[type]++; + if (body_size > job_data_size_limit) { /* throw away the job body and respond with JOB_TOO_BIG */ return skip(c, body_size + 2, MSG_JOB_TOO_BIG); -- 2.11.4.GIT