summaryrefslogtreecommitdiff
path: root/src/cursor/cur_std.c
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2014-04-23 17:24:52 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2014-04-23 17:24:52 +1000
commit3124816c781f6c3d55874f1798bffb365d83aea9 (patch)
tree78a2ee10370d26f42661ebbcbb283a8aa9ce0eaa /src/cursor/cur_std.c
parentd441265605df206692b0c824c5de5b3c3f7f7a8e (diff)
downloadmongo-3124816c781f6c3d55874f1798bffb365d83aea9.tar.gz
Set the TXN_ERROR flag for errors in any transactional call, not just updates.
refs #969
Diffstat (limited to 'src/cursor/cur_std.c')
-rw-r--r--src/cursor/cur_std.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cursor/cur_std.c b/src/cursor/cur_std.c
index a33de259987..ea56d2263ff 100644
--- a/src/cursor/cur_std.c
+++ b/src/cursor/cur_std.c
@@ -222,7 +222,7 @@ __wt_cursor_get_keyv(WT_CURSOR *cursor, uint32_t flags, va_list ap)
cursor->key.data, cursor->key.size, fmt, ap);
}
-err: API_END(session);
+err: API_END(session, ret);
return (ret);
}
@@ -292,7 +292,7 @@ __wt_cursor_set_keyv(WT_CURSOR *cursor, uint32_t flags, va_list ap)
err: cursor->saved_err = ret;
}
- API_END(session);
+ API_END(session, ret);
}
/*
@@ -332,7 +332,7 @@ __wt_cursor_get_value(WT_CURSOR *cursor, ...)
va_end(ap);
-err: API_END(session);
+err: API_END(session, ret);
return (ret);
}
@@ -388,7 +388,7 @@ __wt_cursor_set_value(WT_CURSOR *cursor, ...)
err: cursor->saved_err = ret;
}
va_end(ap);
- API_END(session);
+ API_END(session, ret);
}
/*