Fix issue found by cppcheck:
[src/rgw/rgw_log.cc:340]: (performance) Passing the result of c_str() to a
function that takes std::string as argument no. 4 is slow and redundant.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
if (s->cct->_conf->rgw_ops_log_rados) {
string oid = render_log_object_name(s->cct->_conf->rgw_log_object_name, &bdt,
- s->bucket.bucket_id, entry.bucket.c_str());
+ s->bucket.bucket_id, entry.bucket);
rgw_obj obj(store->params.log_pool, oid);