lib/blob: remove assumption of empty cluster array with multiple EP
Changed assert checking if cluster array is allocated when loading extent pages. This is true only for the first extent page being loaded, of course after that the cluster array can be already allocated. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I0f96294ede5a12ffd6bca73cbeadba8d94a35bac Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/482857 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com>
This commit is contained in:
parent
42109157f4
commit
c177a3c841
@ -752,7 +752,6 @@ _spdk_blob_parse_extent_page(struct spdk_blob_md_page *extent_page, struct spdk_
|
|||||||
{
|
{
|
||||||
assert(blob != NULL);
|
assert(blob != NULL);
|
||||||
assert(blob->state == SPDK_BLOB_STATE_LOADING);
|
assert(blob->state == SPDK_BLOB_STATE_LOADING);
|
||||||
assert(blob->active.clusters == NULL);
|
|
||||||
|
|
||||||
if (_spdk_bs_load_cur_extent_page_valid(extent_page) == false) {
|
if (_spdk_bs_load_cur_extent_page_valid(extent_page) == false) {
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
|
Loading…
Reference in New Issue
Block a user