diff --git a/lib/blob/blobstore.c b/lib/blob/blobstore.c index 3476bed13b..b6f00c6234 100644 --- a/lib/blob/blobstore.c +++ b/lib/blob/blobstore.c @@ -4366,6 +4366,12 @@ bs_load_super_cpl(spdk_bs_sequence_t *seq, void *cb_arg, int bserrno) } ctx->bs->md_start = ctx->super->md_start; ctx->bs->md_len = ctx->super->md_len; + rc = spdk_bit_array_resize(&ctx->bs->open_blobids, ctx->bs->md_len); + if (rc < 0) { + bs_load_ctx_fail(ctx, -ENOMEM); + return; + } + ctx->bs->total_data_clusters = ctx->bs->total_clusters - spdk_divide_round_up( ctx->bs->md_start + ctx->bs->md_len, ctx->bs->pages_per_cluster); ctx->bs->super_blob = ctx->super->super_blob;