diff options
Diffstat (limited to 'src/third_party/wiredtiger/src/optrack/optrack.c')
-rw-r--r-- | src/third_party/wiredtiger/src/optrack/optrack.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/src/optrack/optrack.c b/src/third_party/wiredtiger/src/optrack/optrack.c index 2aeede1f4df..737293d30bf 100644 --- a/src/third_party/wiredtiger/src/optrack/optrack.c +++ b/src/third_party/wiredtiger/src/optrack/optrack.c @@ -57,11 +57,12 @@ err: WT_PANIC_MSG(session, ret, static int __optrack_open_file(WT_SESSION_IMPL *session) { + struct timespec ts; WT_CONNECTION_IMPL *conn; WT_DECL_ITEM(buf); WT_DECL_RET; WT_OPTRACK_HEADER optrack_header = { WT_OPTRACK_VERSION, 0, - (uint32_t)WT_TSC_DEFAULT_RATIO * WT_THOUSAND }; + (uint32_t)WT_TSC_DEFAULT_RATIO * WT_THOUSAND, 0,0}; conn = S2C(session); @@ -86,6 +87,10 @@ __optrack_open_file(WT_SESSION_IMPL *session) optrack_header.optrack_tsc_nsec_ratio = (uint32_t)(__wt_process.tsc_nsec_ratio * WT_THOUSAND); + /* Record the time in seconds since the Epoch. */ + __wt_epoch(session, &ts); + optrack_header.optrack_seconds_epoch = (uint64_t)ts.tv_sec; + /* Write the header into the operation-tracking file. */ WT_ERR(session->optrack_fh->handle->fh_write( session->optrack_fh->handle, (WT_SESSION *)session, |