diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c index b24ec0e176dc..294c0c8756bf 100644 --- a/cmd/zdb/zdb.c +++ b/cmd/zdb/zdb.c @@ -6356,7 +6356,7 @@ dump_block_stats(spa_t *spa) * For an objectstore based zpool, there are no space maps and zdb leak * detection will not work. */ - if (objstore && !dump_opt['L']) { + if (spa_is_object_based(spa) && !dump_opt['L']) { (void) printf("\nSkipping leak detection for object-store " "based zpool.\n\n"); dump_opt['L'] = 1;