summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/log/log.c
diff options
context:
space:
mode:
authorMonica Ng <monica.ng@mongodb.com>2023-02-23 23:17:01 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-24 05:32:10 +0000
commit2fec16c3437a1179b7fea015c3ce0957b7e92d09 (patch)
treeefe9cebc8c3ba303291332bc259129dcecfdef3b /src/third_party/wiredtiger/src/log/log.c
parent95228796b1b3e8aaa796ba8c289b43fdd81afab7 (diff)
downloadmongo-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.c5
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;