summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ztest/ztest.c
diff options
context:
space:
mode:
authorWill Andrews <willa@spectralogic.com>2013-06-11 09:13:51 -0800
committerChristopher Siden <chris.siden@delphix.com>2013-06-11 10:13:51 -0700
commitb3d9f2e26021d3f55a281af30720589d303b9806 (patch)
tree6136bc8fbf331c43adfd1ab09d40bc411eef3a90 /usr/src/cmd/ztest/ztest.c
parent8b713775314bbbf24edd503b4869342d8711ce95 (diff)
downloadillumos-joyent-b3d9f2e26021d3f55a281af30720589d303b9806.tar.gz
3747 txg commit callbacks don't work
Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Eric Schrock <eric.schrock@delphix.com> Approved by: Christopher Siden <christopher.siden@delphix.com>
Diffstat (limited to 'usr/src/cmd/ztest/ztest.c')
-rw-r--r--usr/src/cmd/ztest/ztest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/ztest/ztest.c b/usr/src/cmd/ztest/ztest.c
index ed460551c6..980615eae0 100644
--- a/usr/src/cmd/ztest/ztest.c
+++ b/usr/src/cmd/ztest/ztest.c
@@ -4507,7 +4507,7 @@ ztest_dmu_commit_callbacks(ztest_ds_t *zd, uint64_t id)
*/
tmp_cb = list_head(&zcl.zcl_callbacks);
if (tmp_cb != NULL &&
- tmp_cb->zcd_txg > txg - ZTEST_COMMIT_CALLBACK_THRESH) {
+ (txg - ZTEST_COMMIT_CALLBACK_THRESH) > tmp_cb->zcd_txg) {
fatal(0, "Commit callback threshold exceeded, oldest txg: %"
PRIu64 ", open txg: %" PRIu64 "\n", tmp_cb->zcd_txg, txg);
}