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:
David Zafman 2013-07-25 13:52:16 -07:00
parent 27a0b86615
commit b46fb62df3

View File

@ -5524,7 +5524,8 @@ OSDMapRef OSDService::get_map(epoch_t epoch)
if (epoch > 0) {
dout(20) << "get_map " << epoch << " - loading and decoding " << map << dendl;
bufferlist bl;
assert(_get_map_bl(epoch, bl));
bool ok = _get_map_bl(epoch, bl);
assert(ok);
map->decode(bl);
} else {
dout(20) << "get_map " << epoch << " - return initial " << map << dendl;