Project

General

Profile

Actions

Bug #13703

closed

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.

Actions #1

Updated by Kefu Chai over 8 years ago

  • Status changed from New to Fix Under Review
  • Priority changed from Urgent to Low
Actions #2

Updated by Kefu Chai over 8 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF