diff options
author | Matthew Ahrens <[email protected]> | 2013-08-12 12:53:33 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-11-05 13:18:26 -0800 |
commit | 78e2739d3c9e433c92cd1623a510edb2c83a97d9 (patch) | |
tree | 19dace5b74bacbf449c49812a09409ca809ef0bb /module/zfs/dmu_traverse.c | |
parent | 2517c8ee08ef21ba112c00a94070302cdca04a58 (diff) |
26126 panic system rather than corrupting pool if we hit bug 26100
References:
delphix/delphix-os@931c8aaab74b6412933d299890894262e2ef8380
Ported-by: Richard Yao <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #1650
Diffstat (limited to 'module/zfs/dmu_traverse.c')
-rw-r--r-- | module/zfs/dmu_traverse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/dmu_traverse.c b/module/zfs/dmu_traverse.c index ce306cbda..939dfe2fa 100644 --- a/module/zfs/dmu_traverse.c +++ b/module/zfs/dmu_traverse.c @@ -361,7 +361,7 @@ traverse_visitbp(traverse_data_t *td, const dnode_phys_t *dnp, (void) arc_buf_remove_ref(buf, &buf); post: - if (err == 0 && lasterr == 0 && (td->td_flags & TRAVERSE_POST)) { + if (err == 0 && (td->td_flags & TRAVERSE_POST)) { err = td->td_func(td->td_spa, NULL, bp, zb, dnp, td->td_arg); if (err == ERESTART) pause = B_TRUE; |