diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2014-08-26 13:06:47 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2014-08-26 13:06:47 +1000 |
commit | 1f8f55c79dec6402d41540d99e75519ade66b058 (patch) | |
tree | 032753f46978fcdd5c946dcf9d6dbc1c4d6f05b1 /src/txn | |
parent | 97be49fb4e7d30601048164e0b461ee817722d1c (diff) | |
download | mongo-1f8f55c79dec6402d41540d99e75519ade66b058.tar.gz |
Fix the size of the value returned when stepping into log records. We skip the first byte, so we need to adjust the size.
Thanks, AddressSanitizer and valgrind!
refs #1171
Diffstat (limited to 'src/txn')
-rw-r--r-- | src/txn/txn_log.c | 2 | ||||
-rw-r--r-- | src/txn/txn_recover.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/txn/txn_log.c b/src/txn/txn_log.c index 32014eba8dd..7265d9de057 100644 --- a/src/txn/txn_log.c +++ b/src/txn/txn_log.c @@ -426,7 +426,7 @@ __txn_printlog( out = cookie; - p = LOG_SKIP_HEADER(logrec->data, 0); + p = LOG_SKIP_HEADER(logrec->data); 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 5d7de51cade..b555e6df3f9 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 = LOG_SKIP_HEADER(logrec->data, 0); + p = LOG_SKIP_HEADER(logrec->data); end = (const uint8_t *)logrec->data + logrec->size; /* First, peek at the log record type. */ |