summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/cursor/cur_config.c
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2019-09-05 15:55:04 +1000
committerLuke Chen <luke.chen@mongodb.com>2019-09-05 15:55:04 +1000
commitd2c2e6c73c424d5a28d5bd2a9031e4796a5e4371 (patch)
tree457f5fe506097b766e5e1695ba9d7d2662910416 /src/third_party/wiredtiger/src/cursor/cur_config.c
parent41a74df493503fec4ce054cc380a0d7eb01d374c (diff)
downloadmongo-d2c2e6c73c424d5a28d5bd2a9031e4796a5e4371.tar.gz
Import wiredtiger: 543111d3d8737ada1b741b3a25a201feb2ed13a3 from branch mongodb-4.0
ref: 48bf8dae7c..543111d3d8 for: 4.0.13 WT-4502 Assertion checking hazard pointers on page discard is too strong WT-4658 Apply Clang Format WT-4792 Add stat to track pages queued for eviction after LRU sorting WT-4840 WT_CURSOR.modify must require explicit, snapshot-isolation transaction WT-4869 Stop adding cache pressure when eviction is falling behind WT-4881 Soften the restrictions on re-entering reconciliation WT-4882 Improve checkpoint performance when there are large metadata pages WT-4892 Improve statistics about forced eviction WT-4893 Fix a race between internal page child-page eviction checks and cursors in the tree WT-4895 Fix debug eviction mode so it chooses skew more randomly WT-4898 Don't allow the eviction server to reconcile if it's busy WT-4920 Add statistics tracking when eviction server is waiting for page transitions WT-4957 Revert part of a change about when pages are queued for urgent eviction WT-5050 Assertion failure during urgent eviction of metadata page
Diffstat (limited to 'src/third_party/wiredtiger/src/cursor/cur_config.c')
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_config.c90
1 files changed, 45 insertions, 45 deletions
diff --git a/src/third_party/wiredtiger/src/cursor/cur_config.c b/src/third_party/wiredtiger/src/cursor/cur_config.c
index cc4c755dbc4..cf69ffc8172 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_config.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_config.c
@@ -10,68 +10,68 @@
/*
* __curconfig_close --
- * WT_CURSOR->close method for the config cursor type.
+ * WT_CURSOR->close method for the config cursor type.
*/
static int
__curconfig_close(WT_CURSOR *cursor)
{
- WT_DECL_RET;
- WT_SESSION_IMPL *session;
+ WT_DECL_RET;
+ WT_SESSION_IMPL *session;
- CURSOR_API_CALL_PREPARE_ALLOWED(cursor, session, close, NULL);
+ CURSOR_API_CALL_PREPARE_ALLOWED(cursor, session, close, NULL);
err:
- __wt_cursor_close(cursor);
+ __wt_cursor_close(cursor);
- API_END_RET(session, ret);
+ API_END_RET(session, ret);
}
/*
* __wt_curconfig_open --
- * WT_SESSION->open_cursor method for config cursors.
+ * WT_SESSION->open_cursor method for config cursors.
*/
int
-__wt_curconfig_open(WT_SESSION_IMPL *session,
- const char *uri, const char *cfg[], WT_CURSOR **cursorp)
+__wt_curconfig_open(
+ WT_SESSION_IMPL *session, const char *uri, const char *cfg[], WT_CURSOR **cursorp)
{
- WT_CURSOR_STATIC_INIT(iface,
- __wt_cursor_get_key, /* get-key */
- __wt_cursor_get_value, /* get-value */
- __wt_cursor_set_key, /* set-key */
- __wt_cursor_set_value, /* set-value */
- __wt_cursor_compare_notsup, /* compare */
- __wt_cursor_equals_notsup, /* equals */
- __wt_cursor_notsup, /* next */
- __wt_cursor_notsup, /* prev */
- __wt_cursor_noop, /* reset */
- __wt_cursor_notsup, /* search */
- __wt_cursor_search_near_notsup, /* search-near */
- __wt_cursor_notsup, /* insert */
- __wt_cursor_modify_notsup, /* modify */
- __wt_cursor_notsup, /* update */
- __wt_cursor_notsup, /* remove */
- __wt_cursor_notsup, /* reserve */
- __wt_cursor_reconfigure_notsup, /* reconfigure */
- __wt_cursor_notsup, /* cache */
- __wt_cursor_reopen_notsup, /* reopen */
- __curconfig_close);
- WT_CURSOR_CONFIG *cconfig;
- WT_CURSOR *cursor;
- WT_DECL_RET;
+ WT_CURSOR_STATIC_INIT(iface, __wt_cursor_get_key, /* get-key */
+ __wt_cursor_get_value, /* get-value */
+ __wt_cursor_set_key, /* set-key */
+ __wt_cursor_set_value, /* set-value */
+ __wt_cursor_compare_notsup, /* compare */
+ __wt_cursor_equals_notsup, /* equals */
+ __wt_cursor_notsup, /* next */
+ __wt_cursor_notsup, /* prev */
+ __wt_cursor_noop, /* reset */
+ __wt_cursor_notsup, /* search */
+ __wt_cursor_search_near_notsup, /* search-near */
+ __wt_cursor_notsup, /* insert */
+ __wt_cursor_modify_notsup, /* modify */
+ __wt_cursor_notsup, /* update */
+ __wt_cursor_notsup, /* remove */
+ __wt_cursor_notsup, /* reserve */
+ __wt_cursor_reconfigure_notsup, /* reconfigure */
+ __wt_cursor_notsup, /* cache */
+ __wt_cursor_reopen_notsup, /* reopen */
+ __curconfig_close);
+ WT_CURSOR_CONFIG *cconfig;
+ WT_CURSOR *cursor;
+ WT_DECL_RET;
- WT_STATIC_ASSERT(offsetof(WT_CURSOR_CONFIG, iface) == 0);
+ WT_STATIC_ASSERT(offsetof(WT_CURSOR_CONFIG, iface) == 0);
- WT_RET(__wt_calloc_one(session, &cconfig));
- cursor = (WT_CURSOR *)cconfig;
- *cursor = iface;
- cursor->session = (WT_SESSION *)session;
- cursor->key_format = cursor->value_format = "S";
+ WT_RET(__wt_calloc_one(session, &cconfig));
+ cursor = (WT_CURSOR *)cconfig;
+ *cursor = iface;
+ cursor->session = (WT_SESSION *)session;
+ cursor->key_format = cursor->value_format = "S";
- WT_ERR(__wt_cursor_init(cursor, uri, NULL, cfg, cursorp));
+ WT_ERR(__wt_cursor_init(cursor, uri, NULL, cfg, cursorp));
- if (0) {
-err: WT_TRET(__curconfig_close(cursor));
- *cursorp = NULL;
- }
- return (ret);
+ if (0) {
+err:
+ WT_TRET(__curconfig_close(cursor));
+ *cursorp = NULL;
+ }
+ return (ret);
}