Project

General

Profile

Actions

Bug #14227

closed

MemStore: result of collection_empty method overflowed

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

Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

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

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.

Actions

Also available in: Atom PDF