summaryrefslogtreecommitdiff
path: root/src/include/os_fhandle.i
diff options
context:
space:
mode:
authorAlex Gorrod <alexander.gorrod@mongodb.com>2016-07-06 15:00:21 +1000
committerSulabh Mahajan <sulabh.mahajan@mongodb.com>2016-07-06 15:00:21 +1000
commitd25c162fd21f5051e62a65d7de982c707bb23bd3 (patch)
tree8ca6568296f5bfedd23ebff5fad69e01865bf58b /src/include/os_fhandle.i
parent67d614b0b6faec17b8396b8dfce4acd50958d7ef (diff)
downloadmongo-d25c162fd21f5051e62a65d7de982c707bb23bd3.tar.gz
WT-2743 Fixup new I/O thread count statistics. (#2850)
The increment and decrement were backward, so they never reported positive values. While I was there make the statistics macros consistent.
Diffstat (limited to 'src/include/os_fhandle.i')
-rw-r--r--src/include/os_fhandle.i12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/os_fhandle.i b/src/include/os_fhandle.i
index 313bf8eca3f..9bf5ce0e60b 100644
--- a/src/include/os_fhandle.i
+++ b/src/include/os_fhandle.i
@@ -26,7 +26,7 @@ __wt_fsync(WT_SESSION_IMPL *session, WT_FH *fh, bool block)
* There is no way to check when the non-blocking sync-file-range is
* complete, but we track the time taken in the call for completeness.
*/
- WT_STAT_FAST_CONN_INCR_ATOMIC(session, fsync_active);
+ WT_STAT_FAST_CONN_INCR_ATOMIC(session, thread_fsync_active);
WT_STAT_FAST_CONN_INCR(session, fsync_io);
if (block)
ret = (handle->fh_sync == NULL ? 0 :
@@ -34,7 +34,7 @@ __wt_fsync(WT_SESSION_IMPL *session, WT_FH *fh, bool block)
else
ret = (handle->fh_sync_nowait == NULL ? 0 :
handle->fh_sync_nowait(handle, (WT_SESSION *)session));
- WT_STAT_FAST_CONN_DECR_ATOMIC(session, fsync_active);
+ WT_STAT_FAST_CONN_DECR_ATOMIC(session, thread_fsync_active);
return (ret);
}
@@ -107,13 +107,13 @@ __wt_read(
"%s: handle-read: %" WT_SIZET_FMT " at %" PRIuMAX,
fh->handle->name, len, (uintmax_t)offset));
- WT_STAT_FAST_CONN_INCR_ATOMIC(session, read_active);
+ WT_STAT_FAST_CONN_INCR_ATOMIC(session, thread_read_active);
WT_STAT_FAST_CONN_INCR(session, read_io);
ret = fh->handle->fh_read(
fh->handle, (WT_SESSION *)session, offset, len, buf);
- WT_STAT_FAST_CONN_DECR_ATOMIC(session, read_active);
+ WT_STAT_FAST_CONN_DECR_ATOMIC(session, thread_read_active);
return (ret);
}
@@ -165,12 +165,12 @@ __wt_write(WT_SESSION_IMPL *session,
"%s: handle-write: %" WT_SIZET_FMT " at %" PRIuMAX,
fh->handle->name, len, (uintmax_t)offset));
- WT_STAT_FAST_CONN_INCR_ATOMIC(session, write_active);
+ WT_STAT_FAST_CONN_INCR_ATOMIC(session, thread_write_active);
WT_STAT_FAST_CONN_INCR(session, write_io);
ret = fh->handle->fh_write(
fh->handle, (WT_SESSION *)session, offset, len, buf);
- WT_STAT_FAST_CONN_DECR_ATOMIC(session, write_active);
+ WT_STAT_FAST_CONN_DECR_ATOMIC(session, thread_write_active);
return (ret);
}