diff options
-rw-r--r-- | module/zfs/ddt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/zfs/ddt.c b/module/zfs/ddt.c index 18557ffb5..12c1b7300 100644 --- a/module/zfs/ddt.c +++ b/module/zfs/ddt.c @@ -115,13 +115,14 @@ ddt_object_load(ddt_t *ddt, enum ddt_type type, enum ddt_class class) error = zap_lookup(ddt->ddt_os, DMU_POOL_DIRECTORY_OBJECT, name, sizeof (uint64_t), 1, &ddt->ddt_object[type][class]); - if (error != 0) return (error); - VERIFY0(zap_lookup(ddt->ddt_os, ddt->ddt_spa->spa_ddt_stat_object, name, + error = zap_lookup(ddt->ddt_os, ddt->ddt_spa->spa_ddt_stat_object, name, sizeof (uint64_t), sizeof (ddt_histogram_t) / sizeof (uint64_t), - &ddt->ddt_histogram[type][class])); + &ddt->ddt_histogram[type][class]); + if (error != 0) + return (error); /* * Seed the cached statistics. |