#include <boost/utility/in_place_factory.hpp>
#include <boost/utility/string_view.hpp>
+#include "include/scope_guard.h"
#include "common/Clock.h"
#include "common/armor.h"
#include "common/errno.h"
bool need_calc_md5 = (dlo_manifest == NULL) && (slo_info == NULL);
perfcounter->inc(l_rgw_put);
+ // report latency on return
+ auto put_lat = make_scope_guard([&] {
+ perfcounter->tinc(l_rgw_put_lat, s->time_elapsed());
+ });
+
op_ret = -EINVAL;
if (s->object.empty()) {
goto done;
done:
dispose_processor(processor);
- perfcounter->tinc(l_rgw_put_lat, s->time_elapsed());
}
int RGWPostObj::verify_permission()