summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/btree/bt_discard.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/btree/bt_discard.c b/src/btree/bt_discard.c
index 67e70d0cdb9..32418a9c063 100644
--- a/src/btree/bt_discard.c
+++ b/src/btree/bt_discard.c
@@ -51,12 +51,14 @@ __wt_page_out(WT_SESSION_IMPL *session, WT_PAGE **pagep)
*pagep = NULL;
/*
- * We should never discard a dirty page, the file's current eviction
- * point or a page queued for LRU eviction.
+ * We should never discard ...
*/
- WT_ASSERT(session, !__wt_page_is_modified(page));
- WT_ASSERT(session, !F_ISSET_ATOMIC(page, WT_PAGE_EVICT_LRU));
- WT_ASSERT(session, !__wt_fair_islocked(session, &page->page_lock));
+ WT_ASSERT( /* ... a dirty page */
+ session, !__wt_page_is_modified(page));
+ WT_ASSERT( /* ... a page queued for LRU eviction */
+ session, !F_ISSET_ATOMIC(page, WT_PAGE_EVICT_LRU));
+ WT_ASSERT( /* ... a locked page */
+ session, !__wt_fair_islocked(session, &page->page_lock));
#ifdef HAVE_DIAGNOSTIC
{