1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

dmstats: ensure dm_stats_delete_region() return is checked

This commit is contained in:
Bryn M. Reeves 2016-07-08 11:46:13 +01:00
parent cc4f036d36
commit 005adb0a0a

View File

@ -5040,7 +5040,10 @@ static int _stats_delete(CMD_ARGS)
log_info("Deleted statistics region %" PRIu64, region_id); log_info("Deleted statistics region %" PRIu64, region_id);
} }
} else { } else {
dm_stats_delete_region(dms, region_id); if (!dm_stats_delete_region(dms, region_id)) {
log_error("Could not delete statistics region");
goto out;
}
log_info("Deleted statistics region " FMTu64 ".\n", region_id); log_info("Deleted statistics region " FMTu64 ".\n", region_id);
} }