summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/cursor/cur_log.c
diff options
context:
space:
mode:
authorAlex Gorrod <alexander.gorrod@mongodb.com>2017-08-31 16:44:19 +1000
committerAlex Gorrod <alexander.gorrod@mongodb.com>2017-08-31 16:46:48 +1000
commit2730bd049022954bc7cd43392be20e6d54cf330d (patch)
treecf451c093d9b999e4da33b78d9d912b816864a93 /src/third_party/wiredtiger/src/cursor/cur_log.c
parentac84a0d028eff2b8ca42817d998cb8b34563816c (diff)
downloadmongo-2730bd049022954bc7cd43392be20e6d54cf330d.tar.gz
Import wiredtiger: bacc9ada53a46128642343c162a993d15bc80b57 from branch mongodb-3.6
ref: b055251678..bacc9ada53 for: 3.5.13 WT-3386 Fix test/checkpoint with timestamps WT-3454 Enhance Python test_timestamp03 to test with logged and non-logged tables WT-3476 Make tables first class data handles WT-3495 Don't allow log truncation if log cursors are open WT-3516 Some potential cursor open performance improvements WT-3522 Coverity 1379736, full build Friday lint WT-3523 Fix incorrect use of configure API in test format WT-3525 test_timestamp07 failing automated testing on develop WT-3527 Use power of two hash table size WT-3528 Don't allow setting a commit timestamp on a non-running transaction WT-3529 Add undocumented debug API WT-3535 Fix ASAN build on Jenkins WT-3536 Enable more strict compiler options for clang WT-3538 Misaligned reads when using the lookaside table and timestamps WT-3539 Enhance documentation around APIs that need exclusive handle access WT-3540 Test failure running recovery test case WT-3541 Python test_reconfig02 timeout on the PPC WT-3542 Python test_stats_log_on_json_with_tables timeout on the PPC WT-3544 WT rollback_to_stable hits "memory stomping bug" WT-3545 Avoid array-bounds warnings with gcc 7 WT-3546 Coverity 1380021 dereference before NULL check, lint WT-3547 Hang in test/fops on LSM table read lock WT-3549 Deadlock in test_schema03 WT-3550 Minor output changes to debug_info
Diffstat (limited to 'src/third_party/wiredtiger/src/cursor/cur_log.c')
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_log.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/src/cursor/cur_log.c b/src/third_party/wiredtiger/src/cursor/cur_log.c
index 0ba3ce83e59..bcfac1bfe3e 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_log.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_log.c
@@ -317,8 +317,10 @@ __curlog_close(WT_CURSOR *cursor)
cl = (WT_CURSOR_LOG *)cursor;
conn = S2C(session);
- if (F_ISSET(cl, WT_CURLOG_ARCHIVE_LOCK))
+ if (F_ISSET(cl, WT_CURLOG_ARCHIVE_LOCK)) {
+ (void)__wt_atomic_sub32(&conn->log_cursors, 1);
__wt_readunlock(session, &conn->log->log_archive_lock);
+ }
__wt_free(session, cl->cur_lsn);
__wt_free(session, cl->next_lsn);
@@ -398,6 +400,8 @@ __wt_curlog_open(WT_SESSION_IMPL *session,
/* Log cursors block archiving. */
__wt_readlock(session, &log->log_archive_lock);
F_SET(cl, WT_CURLOG_ARCHIVE_LOCK);
+ (void)__wt_atomic_add32(&conn->log_cursors, 1);
+
}
if (0) {