Fixes:https://tracker.ceph.com/issues/53172
Signed-off-by: zhipeng li <qiuxinyidian@gmail.com>
{
string user_str = user.to_str();
+ RGWUserInfo info;
+ real_time mtime;
+ int ret = read_user_info(ctx, user, &info, nullptr, &mtime, nullptr, nullptr, null_yield, dpp);
+ if (ret < 0)
+ {
+ return ret;
+ }
+
cls_user_header header;
int r = cls_user_get_header(dpp, rgw_user(user_str), &header, y);
- if (r < 0)
+ if (r < 0 && r != -ENOENT)
return r;
const cls_user_stats& hs = header.stats;