Bug #13703
librados: wrong passed in argument 'oid' for stat in IoCtx::stat
Status:
Resolved
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
See
int librados::IoCtx::stat(const std::string& oid, uint64_t *psize, time_t *pmtime)
{
object_t obj(oid);
return io_ctx_impl->stat(oid, psize, pmtime);
}
the first argument of io_ctx_impl->stat() requires an obj(of type object_t), but an oid(of type string) is directly passed in instead which I think is an obvious mistake.
Associated revisions
librados: wrongly passed in argument for stat command
The first argument of io_ctx_impl->stat() requires an obj(of type object_t), but an oid(of type string) is directly passed in instead.
Fixes: #13703
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
History
#1 Updated by Kefu Chai over 8 years ago
- Status changed from New to Fix Under Review
- Priority changed from Urgent to Low
#2 Updated by Kefu Chai over 8 years ago
- Status changed from Fix Under Review to Resolved