Currently, the bytes sent/ received are both set to zero after
an object is uploaded to a bucket. Added code to correct the logic.
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit
85735c972f5db1a110f55e01a4f6249202152553)
int len = 0;
if (cl) {
+ ACCOUNTING_IO(s)->set_account(true);
bufferptr bp(cl);
const auto read_len = recv_body(s, bp.c_str(), cl);
bl.rebuild();
}
}
-
+ ACCOUNTING_IO(s)->set_account(false);
}
if ((uint64_t)ofs + len > s->cct->_conf->rgw_max_put_size) {