void RGWLoadGenRequestEnv::set_date(utime_t& tm)
{
- stringstream s;
- tm.asctime(s);
- date_str = s.str();
+ date_str = rgw_to_asctime(tm);
}
int RGWLoadGenRequestEnv::sign(RGWAccessKey& access_key)
return 0;
}
-void RGWLoadGenIO::init_env(CephContext *cct)
+int RGWLoadGenIO::init_env(CephContext *cct)
{
env.init(cct);
char port_buf[16];
snprintf(port_buf, sizeof(port_buf), "%d", req->port);
env.set("SERVER_PORT", port_buf);
+ return 0;
}
size_t RGWLoadGenIO::send_status(const int status,