summaryrefslogtreecommitdiff
path: root/src/third_party
diff options
context:
space:
mode:
authorEtienne Petrel <etienne.petrel@mongodb.com>2022-01-18 04:44:40 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-18 05:13:32 +0000
commit179ae3410d3cd1b516216bd1d19a67bdcab391de (patch)
tree15e1271cf8c6b3bb77283bf2aba62c3a6207ce6e /src/third_party
parent802eb9c258d550bf7eb45c1da29921459dc0cd0e (diff)
downloadmongo-179ae3410d3cd1b516216bd1d19a67bdcab391de.tar.gz
Import wiredtiger: c424d46831cb44e74ac68d4605d000b9540413ca from branch mongodb-master
ref: d5f19f8263..c424d46831 for: 5.3.0 WT-7309 Update description of operation_timeout_ms for WT_SESSION::begin_transaction
Diffstat (limited to 'src/third_party')
-rw-r--r--src/third_party/wiredtiger/dist/api_data.py6
-rw-r--r--src/third_party/wiredtiger/import.data2
-rw-r--r--src/third_party/wiredtiger/src/config/config_def.c10
-rw-r--r--src/third_party/wiredtiger/src/include/wiredtiger.in18
-rw-r--r--src/third_party/wiredtiger/src/txn/txn.c2
5 files changed, 19 insertions, 19 deletions
diff --git a/src/third_party/wiredtiger/dist/api_data.py b/src/third_party/wiredtiger/dist/api_data.py
index 247ceefd2e4..df39c36c4f9 100644
--- a/src/third_party/wiredtiger/dist/api_data.py
+++ b/src/third_party/wiredtiger/dist/api_data.py
@@ -779,12 +779,12 @@ connection_runtime_config = [
type='boolean')
]),
Config('operation_timeout_ms', '0', r'''
- when non-zero, a requested limit on the number of elapsed real time milliseconds
+ if non-zero, a requested limit on the number of elapsed real time milliseconds
application threads will take to complete database operations. Time is measured from the
start of each WiredTiger API call. There is no guarantee any operation will not take
longer than this amount of time. If WiredTiger notices the limit has been exceeded, an
- operation may return a WT_ROLLBACK error. Default is to have no limit''',
- min=1),
+ operation may return a WT_ROLLBACK error. The default of 0 is to have no limit''',
+ min=0),
Config('operation_tracking', '', r'''
enable tracking of performance-critical functions. See
@ref operation_tracking for more information''',
diff --git a/src/third_party/wiredtiger/import.data b/src/third_party/wiredtiger/import.data
index cc7b6ebc9c4..02be52de6a1 100644
--- a/src/third_party/wiredtiger/import.data
+++ b/src/third_party/wiredtiger/import.data
@@ -2,5 +2,5 @@
"vendor": "wiredtiger",
"github": "wiredtiger/wiredtiger.git",
"branch": "mongodb-master",
- "commit": "d5f19f82635bfd94908d7c0c2b9aeca05134c2ab"
+ "commit": "c424d46831cb44e74ac68d4605d000b9540413ca"
}
diff --git a/src/third_party/wiredtiger/src/config/config_def.c b/src/third_party/wiredtiger/src/config/config_def.c
index d5f2db566f3..624fec2d0cb 100644
--- a/src/third_party/wiredtiger/src/config/config_def.c
+++ b/src/third_party/wiredtiger/src/config/config_def.c
@@ -144,7 +144,7 @@ static const WT_CONFIG_CHECK confchk_WT_CONNECTION_reconfigure[] = {
{"json_output", "list", NULL, "choices=[\"error\",\"message\"]", NULL, 0},
{"log", "category", NULL, NULL, confchk_WT_CONNECTION_reconfigure_log_subconfigs, 4},
{"lsm_manager", "category", NULL, NULL, confchk_wiredtiger_open_lsm_manager_subconfigs, 2},
- {"operation_timeout_ms", "int", NULL, "min=1", NULL, 0},
+ {"operation_timeout_ms", "int", NULL, "min=0", NULL, 0},
{"operation_tracking", "category", NULL, NULL,
confchk_wiredtiger_open_operation_tracking_subconfigs, 2},
{"shared_cache", "category", NULL, NULL, confchk_wiredtiger_open_shared_cache_subconfigs, 5},
@@ -882,7 +882,7 @@ static const WT_CONFIG_CHECK confchk_wiredtiger_open[] = {
{"lsm_manager", "category", NULL, NULL, confchk_wiredtiger_open_lsm_manager_subconfigs, 2},
{"mmap", "boolean", NULL, NULL, NULL, 0}, {"mmap_all", "boolean", NULL, NULL, NULL, 0},
{"multiprocess", "boolean", NULL, NULL, NULL, 0},
- {"operation_timeout_ms", "int", NULL, "min=1", NULL, 0},
+ {"operation_timeout_ms", "int", NULL, "min=0", NULL, 0},
{"operation_tracking", "category", NULL, NULL,
confchk_wiredtiger_open_operation_tracking_subconfigs, 2},
{"readonly", "boolean", NULL, NULL, NULL, 0}, {"salvage", "boolean", NULL, NULL, NULL, 0},
@@ -965,7 +965,7 @@ static const WT_CONFIG_CHECK confchk_wiredtiger_open_all[] = {
{"lsm_manager", "category", NULL, NULL, confchk_wiredtiger_open_lsm_manager_subconfigs, 2},
{"mmap", "boolean", NULL, NULL, NULL, 0}, {"mmap_all", "boolean", NULL, NULL, NULL, 0},
{"multiprocess", "boolean", NULL, NULL, NULL, 0},
- {"operation_timeout_ms", "int", NULL, "min=1", NULL, 0},
+ {"operation_timeout_ms", "int", NULL, "min=0", NULL, 0},
{"operation_tracking", "category", NULL, NULL,
confchk_wiredtiger_open_operation_tracking_subconfigs, 2},
{"readonly", "boolean", NULL, NULL, NULL, 0}, {"salvage", "boolean", NULL, NULL, NULL, 0},
@@ -1045,7 +1045,7 @@ static const WT_CONFIG_CHECK confchk_wiredtiger_open_basecfg[] = {
{"lsm_manager", "category", NULL, NULL, confchk_wiredtiger_open_lsm_manager_subconfigs, 2},
{"mmap", "boolean", NULL, NULL, NULL, 0}, {"mmap_all", "boolean", NULL, NULL, NULL, 0},
{"multiprocess", "boolean", NULL, NULL, NULL, 0},
- {"operation_timeout_ms", "int", NULL, "min=1", NULL, 0},
+ {"operation_timeout_ms", "int", NULL, "min=0", NULL, 0},
{"operation_tracking", "category", NULL, NULL,
confchk_wiredtiger_open_operation_tracking_subconfigs, 2},
{"readonly", "boolean", NULL, NULL, NULL, 0}, {"salvage", "boolean", NULL, NULL, NULL, 0},
@@ -1123,7 +1123,7 @@ static const WT_CONFIG_CHECK confchk_wiredtiger_open_usercfg[] = {
{"lsm_manager", "category", NULL, NULL, confchk_wiredtiger_open_lsm_manager_subconfigs, 2},
{"mmap", "boolean", NULL, NULL, NULL, 0}, {"mmap_all", "boolean", NULL, NULL, NULL, 0},
{"multiprocess", "boolean", NULL, NULL, NULL, 0},
- {"operation_timeout_ms", "int", NULL, "min=1", NULL, 0},
+ {"operation_timeout_ms", "int", NULL, "min=0", NULL, 0},
{"operation_tracking", "category", NULL, NULL,
confchk_wiredtiger_open_operation_tracking_subconfigs, 2},
{"readonly", "boolean", NULL, NULL, NULL, 0}, {"salvage", "boolean", NULL, NULL, NULL, 0},
diff --git a/src/third_party/wiredtiger/src/include/wiredtiger.in b/src/third_party/wiredtiger/src/include/wiredtiger.in
index 21bc5797ef3..c055e44716e 100644
--- a/src/third_party/wiredtiger/src/include/wiredtiger.in
+++ b/src/third_party/wiredtiger/src/include/wiredtiger.in
@@ -2249,12 +2249,12 @@ struct __wt_connection {
* database. Each worker thread uses a session handle from the configured session_max., an
* integer between 3 and 20; default \c 4.}
* @config{ ),,}
- * @config{operation_timeout_ms, when non-zero\, a requested limit on the number of elapsed
+ * @config{operation_timeout_ms, if non-zero\, a requested limit on the number of elapsed
* real time milliseconds application threads will take to complete database operations.
* Time is measured from the start of each WiredTiger API call. There is no guarantee any
* operation will not take longer than this amount of time. If WiredTiger notices the limit
- * has been exceeded\, an operation may return a WT_ROLLBACK error. Default is to have no
- * limit., an integer greater than or equal to 1; default \c 0.}
+ * has been exceeded\, an operation may return a WT_ROLLBACK error. The default of 0 is to
+ * have no limit., an integer greater than or equal to 0; default \c 0.}
* @config{operation_tracking = (, enable tracking of performance-critical functions. See
* @ref operation_tracking for more information., a set of related configuration options
* defined below.}
@@ -3051,12 +3051,12 @@ struct __wt_connection {
* @config{multiprocess, permit sharing between processes (will automatically start an RPC server
* for primary processes and use RPC for secondary processes). <b>Not yet supported in
* WiredTiger</b>., a boolean flag; default \c false.}
- * @config{operation_timeout_ms, when non-zero\, a requested limit on the number of elapsed real
- * time milliseconds application threads will take to complete database operations. Time is
- * measured from the start of each WiredTiger API call. There is no guarantee any operation will
- * not take longer than this amount of time. If WiredTiger notices the limit has been exceeded\, an
- * operation may return a WT_ROLLBACK error. Default is to have no limit., an integer greater than
- * or equal to 1; default \c 0.}
+ * @config{operation_timeout_ms, if non-zero\, a requested limit on the number of elapsed real time
+ * milliseconds application threads will take to complete database operations. Time is measured
+ * from the start of each WiredTiger API call. There is no guarantee any operation will not take
+ * longer than this amount of time. If WiredTiger notices the limit has been exceeded\, an
+ * operation may return a WT_ROLLBACK error. The default of 0 is to have no limit., an integer
+ * greater than or equal to 0; default \c 0.}
* @config{operation_tracking = (, enable tracking of performance-critical functions. See @ref
* operation_tracking for more information., a set of related configuration options defined below.}
* @config{&nbsp;&nbsp;&nbsp;&nbsp;enabled, enable operation tracking subsystem., a boolean flag;
diff --git a/src/third_party/wiredtiger/src/txn/txn.c b/src/third_party/wiredtiger/src/txn/txn.c
index d4a535cce49..a9e8748be23 100644
--- a/src/third_party/wiredtiger/src/txn/txn.c
+++ b/src/third_party/wiredtiger/src/txn/txn.c
@@ -517,7 +517,7 @@ __txn_config_operation_timeout(WT_SESSION_IMPL *session, const char *cfg[], bool
return (0);
/* Retrieve the maximum operation time, defaulting to the database-wide configuration. */
- WT_RET(__wt_config_gets(session, cfg, "operation_timeout_ms", &cval));
+ WT_RET(__wt_config_gets_def(session, cfg, "operation_timeout_ms", 0, &cval));
/*
* The default configuration value is 0, we can't tell if they're setting it back to 0 or, if