summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/txn/txn_ckpt.c
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2016-09-20 09:47:50 +1000
committerMichael Cahill <michael.cahill@mongodb.com>2016-09-20 09:47:50 +1000
commitdfca65ea3a32b1e0c832ff7ee2d7b667819ec64d (patch)
tree1f58b8a1f049fa0d425dd3af353c63a9dc09dade /src/third_party/wiredtiger/src/txn/txn_ckpt.c
parent7d2acd6395ec84beca34718a75371bc11f0c9f60 (diff)
downloadmongo-dfca65ea3a32b1e0c832ff7ee2d7b667819ec64d.tar.gz
Import wiredtiger: bb18c439152379fb528af217345be40819b01fc4 from branch mongodb-3.2
ref: 911c940ada..bb18c43915 for: 3.2.10 WT-2859 Improve statistics macros to not collect stats when statistics=none is set WT-2894 Create workload that shows negative scaling when overwhelmed WT-2900 Add ARM8 build support to WiredTiger and fix ARM CRC assembler tags WT-2902 Enhance eviction to work better with update heavy YCSB load WT-2905 dead code: MongoDB Coverity #99881 WT-2908 Add dry-run support to python unit-test WT-2910 test_inmem01 can abort due to stuck cache WT-2911 add support for gcc6 WT-2912 make --enable-strict run on the zseries test box WT-2913 stuck cache after latest merge WT-2914 Fix link error on OS/X for checksum_init call WT-2916 whitespace check not working
Diffstat (limited to 'src/third_party/wiredtiger/src/txn/txn_ckpt.c')
-rw-r--r--src/third_party/wiredtiger/src/txn/txn_ckpt.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/third_party/wiredtiger/src/txn/txn_ckpt.c b/src/third_party/wiredtiger/src/txn/txn_ckpt.c
index 91cee92b862..180a06a3aed 100644
--- a/src/third_party/wiredtiger/src/txn/txn_ckpt.c
+++ b/src/third_party/wiredtiger/src/txn/txn_ckpt.c
@@ -306,7 +306,7 @@ __checkpoint_update_generation(WT_SESSION_IMPL *session)
WT_PUBLISH(btree->checkpoint_gen,
S2C(session)->txn_global.checkpoint_gen);
- WT_STAT_FAST_DATA_SET(session,
+ WT_STAT_DATA_SET(session,
btree_checkpoint_generation, btree->checkpoint_gen);
}
@@ -424,14 +424,14 @@ __checkpoint_reduce_dirty_cache(WT_SESSION_IMPL *session)
*/
__wt_sleep(0, 10 * stepdown_us);
cache->eviction_scrub_limit = current_dirty - delta;
- WT_STAT_FAST_CONN_SET(session, txn_checkpoint_scrub_target,
+ WT_STAT_CONN_SET(session, txn_checkpoint_scrub_target,
cache->eviction_scrub_limit);
WT_RET(__wt_epoch(session, &last));
}
WT_RET(__wt_epoch(session, &stop));
total_ms = WT_TIMEDIFF_MS(stop, start);
- WT_STAT_FAST_CONN_SET(session, txn_checkpoint_scrub_time, total_ms);
+ WT_STAT_CONN_SET(session, txn_checkpoint_scrub_time, total_ms);
return (0);
}
@@ -619,7 +619,7 @@ __txn_checkpoint(WT_SESSION_IMPL *session, const char *cfg[])
* ignore the checkpoint's transaction.
*/
(void)__wt_atomic_addv64(&txn_global->checkpoint_gen, 1);
- WT_STAT_FAST_CONN_SET(session,
+ WT_STAT_CONN_SET(session,
txn_checkpoint_generation, txn_global->checkpoint_gen);
/* Keep track of handles acquired for locking. */
@@ -705,7 +705,7 @@ __txn_checkpoint(WT_SESSION_IMPL *session, const char *cfg[])
* after this point are too new to be written in the checkpoint.
*/
cache->eviction_scrub_limit = 0.0;
- WT_STAT_FAST_CONN_SET(session, txn_checkpoint_scrub_target, 0);
+ WT_STAT_CONN_SET(session, txn_checkpoint_scrub_target, 0);
/*
* Mark old checkpoints that are being deleted and figure out which
@@ -749,8 +749,8 @@ __txn_checkpoint(WT_SESSION_IMPL *session, const char *cfg[])
WT_ERR(__checkpoint_apply(session, cfg, __wt_checkpoint_sync));
WT_ERR(__wt_epoch(session, &fsync_stop));
fsync_duration_usecs = WT_TIMEDIFF_US(fsync_stop, fsync_start);
- WT_STAT_FAST_CONN_INCR(session, txn_checkpoint_fsync_post);
- WT_STAT_FAST_CONN_SET(session,
+ WT_STAT_CONN_INCR(session, txn_checkpoint_fsync_post);
+ WT_STAT_CONN_SET(session,
txn_checkpoint_fsync_post_duration, fsync_duration_usecs);
WT_ERR(__checkpoint_verbose_track(session,
@@ -829,7 +829,7 @@ err: /*
WT_TRET(__wt_meta_track_off(session, false, ret != 0));
cache->eviction_scrub_limit = 0.0;
- WT_STAT_FAST_CONN_SET(session, txn_checkpoint_scrub_target, 0);
+ WT_STAT_CONN_SET(session, txn_checkpoint_scrub_target, 0);
if (F_ISSET(txn, WT_TXN_RUNNING)) {
/*
@@ -903,12 +903,12 @@ __wt_txn_checkpoint(WT_SESSION_IMPL *session, const char *cfg[])
* calls checkpoint directly, it can be tough to avoid. Serialize here
* to ensure we don't get into trouble.
*/
- WT_STAT_FAST_CONN_SET(session, txn_checkpoint_running, 1);
+ WT_STAT_CONN_SET(session, txn_checkpoint_running, 1);
WT_WITH_CHECKPOINT_LOCK(session, ret,
ret = __txn_checkpoint(session, cfg));
- WT_STAT_FAST_CONN_SET(session, txn_checkpoint_running, 0);
+ WT_STAT_CONN_SET(session, txn_checkpoint_running, 0);
F_CLR(session, WT_SESSION_CAN_WAIT | WT_SESSION_NO_EVICTION);