s/VERIFY/VERIFY3S in vdev_checkpoint_sm_object

Using VERIFY3S allows to view the unexpected error value in the system
log.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Don Brady <don.brady@delphix.com>
Signed-off-by: Tim Chase <tim@chase2k.com>
Issue #7809 
Closes #7818
This commit is contained in:
Tim Chase 2018-08-21 18:08:15 -05:00 committed by Brian Behlendorf
parent 149ce888bb
commit 2711b1d05f

View File

@ -2774,7 +2774,8 @@ vdev_checkpoint_sm_object(vdev_t *vd)
int err = zap_lookup(spa_meta_objset(vd->vdev_spa), vd->vdev_top_zap,
VDEV_TOP_ZAP_POOL_CHECKPOINT_SM, sizeof (uint64_t), 1, &sm_obj);
VERIFY(err == 0 || err == ENOENT);
if (err != 0)
VERIFY3S(err, ==, ENOENT);
return (sm_obj);
}