diff options
author | Keith Bostic <keith@wiredtiger.com> | 2012-03-20 08:56:48 +0000 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2012-03-20 08:56:48 +0000 |
commit | 06b0957920e003f541dc83b60c42630aad4e1e69 (patch) | |
tree | 5d68d9f8a1d690bf5ab4136fcea54a14f67d2978 | |
parent | f43ca10b1d761d5eab3dfcf8884b2da94fad0d29 (diff) | |
download | mongo-06b0957920e003f541dc83b60c42630aad4e1e69.tar.gz |
Don't complain about buffers that weren't discarded yet, it breaks the
test suite.
-rw-r--r-- | src/support/scratch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/support/scratch.c b/src/support/scratch.c index dbc99972a8a..e14b4ec2240 100644 --- a/src/support/scratch.c +++ b/src/support/scratch.c @@ -382,9 +382,11 @@ __wt_scr_discard(WT_SESSION_IMPL *session) bufp = session->scratch; i < session->scratch_alloc; ++i, ++bufp) { if (*bufp == NULL) continue; +#if 0 if (F_ISSET(*bufp, WT_ITEM_INUSE)) __wt_errx(session, "scratch buffer allocated and never discarded"); +#endif __wt_buf_free(session, *bufp); __wt_free(session, *bufp); } |