Project

General

Profile

Bug #14227

MemStore: result of collection_empty method overflowed

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

Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Start date:
01/05/2016
Due date:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

bool MemStore::collection_empty(coll_t cid) {
dout(10) << func << " " << cid << dendl;
CollectionRef c = get_collection(cid);
if (!c)
return -ENOENT;// overflowed
RWLock::RLocker l(c->lock);

return c->object_map.empty();
}

Shall cast to false instead.

Associated revisions

Revision d225522d (diff)
Added by xie xingguo about 3 years ago

os: fix overflow of collection_empty method

Fixes: #14227
Signed-off-by: xie xingguo <>

Also available in: Atom PDF