summaryrefslogtreecommitdiff
path: root/src/txn
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2014-08-21 16:01:22 -0400
committerSusan LoVerso <sue@wiredtiger.com>2014-08-21 16:01:22 -0400
commit1f70b62d9560c4b5b47f2d3c73a8f83e7b755812 (patch)
tree358464c4887006d4a600f2bd1286f7e7a848201e /src/txn
parentea9892747fd082bdd0627be5e599be2f8db0c89a (diff)
downloadmongo-1f70b62d9560c4b5b47f2d3c73a8f83e7b755812.tar.gz
Add log_printf call to ex_log. Plus some fixes for it. #1171
Diffstat (limited to 'src/txn')
-rw-r--r--src/txn/txn_log.c2
-rw-r--r--src/txn/txn_recover.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/txn/txn_log.c b/src/txn/txn_log.c
index 3ad36fa118f..32014eba8dd 100644
--- a/src/txn/txn_log.c
+++ b/src/txn/txn_log.c
@@ -426,7 +426,7 @@ __txn_printlog(
out = cookie;
- p = (const uint8_t *)logrec->data + offsetof(WT_LOG_RECORD, record);
+ p = LOG_SKIP_HEADER(logrec->data, 0);
end = (const uint8_t *)logrec->data + logrec->size;
/* First, peek at the log record type. */
diff --git a/src/txn/txn_recover.c b/src/txn/txn_recover.c
index b4767d6e0d6..5d7de51cade 100644
--- a/src/txn/txn_recover.c
+++ b/src/txn/txn_recover.c
@@ -270,7 +270,7 @@ __txn_log_recover(
uint32_t rectype;
r = cookie;
- p = (const uint8_t *)logrec->data + offsetof(WT_LOG_RECORD, record);
+ p = LOG_SKIP_HEADER(logrec->data, 0);
end = (const uint8_t *)logrec->data + logrec->size;
/* First, peek at the log record type. */