diff options
author | Monica Ng <monica.ng@mongodb.com> | 2023-02-23 23:17:01 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-02-24 05:32:10 +0000 |
commit | 2fec16c3437a1179b7fea015c3ce0957b7e92d09 (patch) | |
tree | efe9cebc8c3ba303291332bc259129dcecfdef3b /src/third_party/wiredtiger/src/log/log.c | |
parent | 95228796b1b3e8aaa796ba8c289b43fdd81afab7 (diff) | |
download | mongo-2fec16c3437a1179b7fea015c3ce0957b7e92d09.tar.gz |
Import wiredtiger: e9fad99f3e9eebbed7917d55d32a70c6f33f8dd8 from branch mongodb-master
ref: 93d2ee9234..e9fad99f3e
for: 7.0.0-rc0
WT-10563 Print calculated checksum and expected checksum when we have a checksum mismatch
Diffstat (limited to 'src/third_party/wiredtiger/src/log/log.c')
-rw-r--r-- | src/third_party/wiredtiger/src/log/log.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/src/log/log.c b/src/third_party/wiredtiger/src/log/log.c index 9c399a535e3..bf05cee1ab9 100644 --- a/src/third_party/wiredtiger/src/log/log.c +++ b/src/third_party/wiredtiger/src/log/log.c @@ -981,7 +981,10 @@ __log_open_verify(WT_SESSION_IMPL *session, uint32_t id, WT_FH **fhp, WT_LSN *ls } if (!__log_checksum_match(buf, allocsize)) - WT_ERR_MSG(session, WT_ERROR, "%s: System log record checksum mismatch", fh->name); + WT_ERR_MSG(session, WT_ERROR, + "%s: System log record checksum mismatch: calculated block checksum of %#" PRIx32 + " doesn't match expected checksum of %#" PRIx32, + fh->name, __wt_checksum(buf, allocsize), logrec->checksum); __wt_log_record_byteswap(logrec); p = WT_LOG_SKIP_HEADER(buf->data); end = (const uint8_t *)buf->data + allocsize; |