diff options
author | Luke Chen <luke.chen@mongodb.com> | 2018-07-11 13:26:10 +1000 |
---|---|---|
committer | Luke Chen <luke.chen@mongodb.com> | 2018-07-11 13:26:10 +1000 |
commit | c21c6829444f923729ccd6348fee5d5d49fb14f6 (patch) | |
tree | 1be133e0633cf1ecc21d0865c21119d9ebdefc14 /src/third_party/wiredtiger/src/conn/conn_api.c | |
parent | 3346e3cb9609422e4f6ac41b6791e175bdfb5124 (diff) | |
download | mongo-c21c6829444f923729ccd6348fee5d5d49fb14f6.tar.gz |
Import wiredtiger: e6c749653220cf701c23634cd704ae0c2d882dd9 from branch mongodb-4.0
ref: 7d3e691fd4..e6c7496532
for: 4.0.1
WT-3839 Document the undefined behavior when a range truncate overlaps with inserts
WT-3917 Enhance WT_CURSOR::reserve documentation around commit visibility
WT-4024 Fix a race between split and next/prev
WT-4048 Generalize timing_stress_for_test split functionality
WT-4067 Enhance LSM to not pin as much history in cache
WT-4101 Don't abort the eviction server during session verify when oldest_timestamp is held back
WT-4111 Improve checkpoint scrubbing algorithm
WT-4125 Ensure that subsequent checkpoints with stable timestamp don't read too much
WT-4133 Coverity 1393445, 1393446 Dereference before null check
WT-4136 Add a new timing stress flag that yields during tree search
WT-4138 Add an option to timeout waiting for space in the cache
WT-4139 rename the cursor restart statistic to match implementation
WT-4140 Cursor walk limits quick eviction page selection unnecessarily.
WT-4141 Enhance checkpoint with timestamps to unblock eviction sooner
WT-4143 Use WiredTiger.turtle.set if it exists but WiredTiger.turtle does not
WT-4145 Only include the checkpoint timestamp during checkpoints
WT-4146 Coverity 1393639, unused variable
WT-4152 Save return value for later comparison in transaction code
WT-4163 Lint
Diffstat (limited to 'src/third_party/wiredtiger/src/conn/conn_api.c')
-rw-r--r-- | src/third_party/wiredtiger/src/conn/conn_api.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/third_party/wiredtiger/src/conn/conn_api.c b/src/third_party/wiredtiger/src/conn/conn_api.c index d322caac04a..589560acc88 100644 --- a/src/third_party/wiredtiger/src/conn/conn_api.c +++ b/src/third_party/wiredtiger/src/conn/conn_api.c @@ -137,7 +137,7 @@ __conn_add_collator(WT_CONNECTION *wt_conn, CONNECTION_API_CALL(conn, session, add_collator, config, cfg); WT_UNUSED(cfg); - if (WT_STREQ(name, "none")) + if (strcmp(name, "none") == 0) WT_ERR_MSG(session, EINVAL, "invalid name for a collator: %s", name); @@ -243,7 +243,7 @@ __conn_add_compressor(WT_CONNECTION *wt_conn, CONNECTION_API_CALL(conn, session, add_compressor, config, cfg); WT_UNUSED(cfg); - if (WT_STREQ(name, "none")) + if (strcmp(name, "none") == 0) WT_ERR_MSG(session, EINVAL, "invalid name for a compressor: %s", name); @@ -482,7 +482,7 @@ __conn_add_encryptor(WT_CONNECTION *wt_conn, CONNECTION_API_CALL(conn, session, add_encryptor, config, cfg); WT_UNUSED(cfg); - if (WT_STREQ(name, "none")) + if (strcmp(name, "none") == 0) WT_ERR_MSG(session, EINVAL, "invalid name for an encryptor: %s", name); @@ -578,7 +578,7 @@ __conn_add_extractor(WT_CONNECTION *wt_conn, CONNECTION_API_CALL(conn, session, add_extractor, config, cfg); WT_UNUSED(cfg); - if (WT_STREQ(name, "none")) + if (strcmp(name, "none") == 0) WT_ERR_MSG(session, EINVAL, "invalid name for an extractor: %s", name); @@ -1692,11 +1692,11 @@ __conn_single(WT_SESSION_IMPL *session, const char *cfg[]) is_create || exist ? WT_FS_OPEN_CREATE : 0, &conn->lock_fh); /* - * If this is a read-only connection and we cannot grab the lock - * file, check if it is because there is not write permission or - * if the file does not exist. If so, then ignore the error. - * XXX Ignoring the error does allow multiple read-only - * connections to exist at the same time on a read-only directory. + * If this is a read-only connection and we cannot grab the lock file, + * check if it is because there's no write permission or if the file + * does not exist. If so, then ignore the error. + * XXX Ignoring the error does allow multiple read-only connections to + * exist at the same time on a read-only directory. * * If we got an expected permission or non-existence error then skip * the byte lock. @@ -1776,7 +1776,7 @@ __conn_single(WT_SESSION_IMPL *session, const char *cfg[]) * and there's never a database home after that point without a turtle * file. If the turtle file doesn't exist, it's a create. */ - WT_ERR(__wt_fs_exist(session, WT_METADATA_TURTLE, &exist)); + WT_ERR(__wt_turtle_exists(session, &exist)); conn->is_new = exist ? 0 : 1; if (conn->is_new) { @@ -2024,6 +2024,8 @@ __wt_timing_stress_config(WT_SESSION_IMPL *session, const char *cfg[]) { "split_5", WT_TIMING_STRESS_SPLIT_5 }, { "split_6", WT_TIMING_STRESS_SPLIT_6 }, { "split_7", WT_TIMING_STRESS_SPLIT_7 }, + { "split_8", WT_TIMING_STRESS_SPLIT_8 }, + { "split_9", WT_TIMING_STRESS_SPLIT_9 }, { NULL, 0 } }; WT_CONFIG_ITEM cval, sval; |