summaryrefslogtreecommitdiff
path: root/src/support/hazard.c
diff options
context:
space:
mode:
authorMichael Cahill <mjc@wiredtiger.com>2012-05-22 01:09:42 -0700
committerMichael Cahill <mjc@wiredtiger.com>2012-05-22 01:09:42 -0700
commit4bf90b1f59f3bc6a9053c8acb55c1aaaf63a552c (patch)
treeb180f0cb5e2669f1c0549aa3530e609636a6e306 /src/support/hazard.c
parent3009ce4ac2289f1effa78cec4a377a6cfda70b4b (diff)
parent4cd7ac1a90538d84c6e4c3a0b50861812eb2aafc (diff)
downloadmongo-4bf90b1f59f3bc6a9053c8acb55c1aaaf63a552c.tar.gz
Merge pull request #212 from wiredtiger/max-session
closes #186
Diffstat (limited to 'src/support/hazard.c')
-rw-r--r--src/support/hazard.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/support/hazard.c b/src/support/hazard.c
index b7557013c9f..3846889dce2 100644
--- a/src/support/hazard.c
+++ b/src/support/hazard.c
@@ -207,26 +207,4 @@ __hazard_dump(WT_SESSION_IMPL *session)
if (fail)
__wt_errx(session, "unexpected hazard reference");
}
-
-/*
- * __wt_hazard_validate --
- * Confirm that a page isn't on the hazard list.
- */
-void
-__wt_hazard_validate(WT_SESSION_IMPL *session, WT_PAGE *page)
-{
- WT_CONNECTION_IMPL *conn;
- WT_HAZARD *hp;
- uint32_t elem, i;
-
- conn = S2C(session);
-
- elem = conn->session_size * conn->hazard_size;
- for (i = 0, hp = conn->hazard; i < elem; ++i, ++hp)
- if (hp->page == page)
- __wt_errx(session,
- "discarded page has hazard reference: "
- "(%p: %s, line %d)",
- hp->page, hp->file, hp->line);
-}
#endif