diff options
author | Keith Bostic <keith@wiredtiger.com> | 2012-12-10 14:42:24 +0000 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2012-12-10 14:42:24 +0000 |
commit | b69ff8a5edc4459eceb5256b2b2a3e260ec2d472 (patch) | |
tree | 5ec2356b51dbbcf31959efca5f355ecf0311e0bb /src/cursor/cur_std.c | |
parent | b3238a4f40c9734e6d708b1c53ab608e50158fcc (diff) | |
download | mongo-b69ff8a5edc4459eceb5256b2b2a3e260ec2d472.tar.gz |
Add a __wt_panic function that shuts down all of the WiredTiger APIs.
Diffstat (limited to 'src/cursor/cur_std.c')
-rw-r--r-- | src/cursor/cur_std.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cursor/cur_std.c b/src/cursor/cur_std.c index a77b2c76159..3a724524ddb 100644 --- a/src/cursor/cur_std.c +++ b/src/cursor/cur_std.c @@ -288,9 +288,9 @@ __wt_cursor_set_value(WT_CURSOR *cursor, ...) size_t sz; va_list ap; + va_start(ap, cursor); CURSOR_API_CALL(cursor, session, set_value, NULL); - va_start(ap, cursor); fmt = F_ISSET(cursor, WT_CURSOR_RAW_OK) ? "u" : cursor->value_format; /* Fast path some common cases: single strings, byte arrays and bits. */ @@ -363,7 +363,7 @@ __wt_cursor_close(WT_CURSOR *cursor) __wt_free(session, cursor->uri); __wt_free(session, cursor); - API_END(session); +err: API_END(session); return (ret); } |