summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/session
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2018-11-26 14:26:36 +1100
committerLuke Chen <luke.chen@mongodb.com>2018-11-26 14:26:36 +1100
commit406d650b57a00bbc66e616ebbb5b22112a0621aa (patch)
treec245e765d3c6eadc7b9be82e216557cf2e43159e /src/third_party/wiredtiger/src/session
parentda22c83c0e2d4d9b1e014b183a21898443dbc128 (diff)
downloadmongo-406d650b57a00bbc66e616ebbb5b22112a0621aa.tar.gz
Import wiredtiger: 74aa2f92a95596196d8ff131cdf015850613c893 from branch mongodb-4.2
ref: a065c83d8d..74aa2f92a9 for: 4.1.6 WT-3756 Adjust pre-allocated file amount downward if we're not using them quickly enough WT-4381 Reset session statistics as on WT_SESSION::reset() WT-4394 Reduce Evergreen Ubuntu build variant runtime by splitting up 'make check' tests WT-4419 big-endian machines incorrectly configure little-endian crc32c support WT-4427 Make WiredTiger timestamps always on and 8 bytes WT-4440 Force a copy of the stable timestamp for clarity
Diffstat (limited to 'src/third_party/wiredtiger/src/session')
-rw-r--r--src/third_party/wiredtiger/src/session/session_api.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/session/session_api.c b/src/third_party/wiredtiger/src/session/session_api.c
index 85740d4935b..c413fb21f32 100644
--- a/src/third_party/wiredtiger/src/session/session_api.c
+++ b/src/third_party/wiredtiger/src/session/session_api.c
@@ -1012,6 +1012,10 @@ __session_reset(WT_SESSION *wt_session)
/* Release common session resources. */
WT_TRET(__wt_session_release_resources(session));
+ /* Reset the session statistics. */
+ if (WT_STAT_ENABLED(session))
+ __wt_stat_session_clear_single(&session->stats);
+
err: API_END_RET_NOTFOUND_MAP(session, ret);
}