mirror of
https://github.com/ceph/ceph
synced 2024-12-17 17:05:42 +00:00
osd: Don't put functional code inside of an assert
Fix assert in OSDService::get_map() Signed-off-by: David Zafman <david.zafman@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
27a0b86615
commit
b46fb62df3
@ -5524,7 +5524,8 @@ OSDMapRef OSDService::get_map(epoch_t epoch)
|
|||||||
if (epoch > 0) {
|
if (epoch > 0) {
|
||||||
dout(20) << "get_map " << epoch << " - loading and decoding " << map << dendl;
|
dout(20) << "get_map " << epoch << " - loading and decoding " << map << dendl;
|
||||||
bufferlist bl;
|
bufferlist bl;
|
||||||
assert(_get_map_bl(epoch, bl));
|
bool ok = _get_map_bl(epoch, bl);
|
||||||
|
assert(ok);
|
||||||
map->decode(bl);
|
map->decode(bl);
|
||||||
} else {
|
} else {
|
||||||
dout(20) << "get_map " << epoch << " - return initial " << map << dendl;
|
dout(20) << "get_map " << epoch << " - return initial " << map << dendl;
|
||||||
|
Loading…
Reference in New Issue
Block a user