Project

General

Profile

Bug #13703

librados: wrong passed in argument 'oid' for stat in IoCtx::stat

Added by xie xingguo over 8 years ago. Updated over 8 years ago.

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

Revision 508bd877 (diff)
Added by xie xingguo over 8 years ago

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 <>

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

Also available in: Atom PDF