summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/log/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/log/log.c')
-rw-r--r--src/third_party/wiredtiger/src/log/log.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/third_party/wiredtiger/src/log/log.c b/src/third_party/wiredtiger/src/log/log.c
index 3929938618e..fb22d7b013f 100644
--- a/src/third_party/wiredtiger/src/log/log.c
+++ b/src/third_party/wiredtiger/src/log/log.c
@@ -424,9 +424,9 @@ __wt_log_get_all_files(WT_SESSION_IMPL *session,
{
WT_DECL_RET;
WT_LOG *log;
- char **files;
uint32_t id, max;
u_int count, i;
+ char **files;
*filesp = NULL;
*countp = 0;
@@ -790,9 +790,9 @@ __log_file_header(
WT_DECL_ITEM(buf);
WT_DECL_RET;
WT_LOG *log;
+ WT_LOGSLOT tmp;
WT_LOG_DESC *desc;
WT_LOG_RECORD *logrec;
- WT_LOGSLOT tmp;
WT_MYSLOT myslot;
conn = S2C(session);
@@ -1712,8 +1712,8 @@ __wt_log_release(WT_SESSION_IMPL *session, WT_LOGSLOT *slot, bool *freep)
WT_DECL_RET;
WT_LOG *log;
WT_LSN sync_lsn;
- int64_t release_buffered, release_bytes;
uint64_t fsync_duration_usecs;
+ int64_t release_buffered, release_bytes;
bool locked;
conn = S2C(session);
@@ -1891,11 +1891,11 @@ __wt_log_scan(WT_SESSION_IMPL *session, WT_LSN *lsnp, uint32_t flags,
WT_LSN end_lsn, next_lsn, prev_eof, prev_lsn, rd_lsn, start_lsn;
wt_off_t log_size;
uint32_t allocsize, firstlog, lastlog, lognum, rdup_len, reclen;
+ uint16_t version;
u_int i, logcount;
int firstrecord;
- uint16_t version;
- bool eol, partial_record;
char **logfiles;
+ bool eol, partial_record;
conn = S2C(session);
log = conn->log;
@@ -2301,9 +2301,9 @@ __wt_log_write(WT_SESSION_IMPL *session, WT_ITEM *record, WT_LSN *lsnp,
WT_KEYED_ENCRYPTOR *kencryptor;
WT_LOG *log;
WT_LOG_RECORD *newlrp;
- int compression_failed;
size_t dst_len, len, new_size, result_len, src_len;
uint8_t *dst, *src;
+ int compression_failed;
conn = S2C(session);
log = conn->log;
@@ -2576,10 +2576,10 @@ __wt_log_vprintf(WT_SESSION_IMPL *session, const char *fmt, va_list ap)
WT_CONNECTION_IMPL *conn;
WT_DECL_ITEM(logrec);
WT_DECL_RET;
- va_list ap_copy;
- const char *rec_fmt = WT_UNCHECKED_STRING(I);
- uint32_t rectype = WT_LOGREC_MESSAGE;
size_t header_size, len;
+ uint32_t rectype = WT_LOGREC_MESSAGE;
+ const char *rec_fmt = WT_UNCHECKED_STRING(I);
+ va_list ap_copy;
conn = S2C(session);