diff options
author | Luke Chen <luke.chen@mongodb.com> | 2022-09-30 11:31:40 +1000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-30 02:03:48 +0000 |
commit | 1cd29a0d7b554614df88de02935677fe582e2c8e (patch) | |
tree | 7c54e0c2f7d6720356112cf29bafe9092e489cfc /src/third_party/wiredtiger/src/include/session.h | |
parent | f3481a5054f0d85917627ee7816416567ec9a6f7 (diff) | |
download | mongo-1cd29a0d7b554614df88de02935677fe582e2c8e.tar.gz |
Import wiredtiger: 01f71212d36e8f49ff9d2e59266c82231fa5b8d9 from branch mongodb-master
ref: 440964001d..01f71212d3
for: 6.2.0-rc0
WT-9825 Improve assert inside WT_READING_CHECKPOINT (#8310)
Diffstat (limited to 'src/third_party/wiredtiger/src/include/session.h')
-rw-r--r-- | src/third_party/wiredtiger/src/include/session.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/src/include/session.h b/src/third_party/wiredtiger/src/include/session.h index 5da6f0368de..3bdb0804876 100644 --- a/src/third_party/wiredtiger/src/include/session.h +++ b/src/third_party/wiredtiger/src/include/session.h @@ -304,4 +304,6 @@ struct __wt_session_impl { }; /* Consider moving this to session_inline.h if it ever appears. */ -#define WT_READING_CHECKPOINT(s) ((s)->dhandle != NULL && WT_DHANDLE_IS_CHECKPOINT((s)->dhandle)) +#define WT_READING_CHECKPOINT(s) \ + ((s)->dhandle != NULL && F_ISSET((s)->dhandle, WT_DHANDLE_OPEN) && \ + WT_DHANDLE_IS_CHECKPOINT((s)->dhandle)) |