mirror of
https://github.com/ceph/ceph
synced 2025-01-04 02:02:36 +00:00
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:
commit
cfcfe9633d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user