Project

General

Profile

Bug #13703

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

Added by xie xingguo about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
11/05/2015
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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 about 3 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 about 3 years ago

  • Status changed from New to Need Review
  • Priority changed from Urgent to Low

#2 Updated by Kefu Chai about 3 years ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF