Set error flag on lbat alloc failure

This commit is contained in:
Tom Marshall 2019-11-09 20:34:29 +01:00
parent dbea68ddd2
commit d43a37531f
1 changed files with 1 additions and 0 deletions

View File

@ -348,6 +348,7 @@ lbd_flush(struct lbd* lbd, struct cbd_stats* stats)
}
ret = lbatview_elem_realloc(lbd->lv, lbd->lblk, lbd->c_len, stats);
if (ret) {
lbd->params->flags |= CBD_FLAG_ERROR;
goto unlock;
}
for (n = 0; n < count; ++n) {