Merge pull request #11493 from atheism/rgw-rgw_rados-fix-specifier

rgw: rgw_rados.cc fix shard_num format for snprintf

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-10-14 11:14:27 -05:00 committed by GitHub
commit cfcfe9633d

View File

@ -4863,7 +4863,7 @@ int RGWRados::time_log_trim(const string& oid, const real_time& start_time, cons
string RGWRados::objexp_hint_get_shardname(int shard_num)
{
char buf[32];
snprintf(buf, sizeof(buf), "%010u", shard_num);
snprintf(buf, sizeof(buf), "%010u", (unsigned)shard_num);
string objname("obj_delete_at_hint.");
return objname + buf;