# HG changeset patch # User Gregory Maxwell # Date 1336560902 25200 # Node ID 31506719a493eb497d816efcc179dcc894d26143 # Parent fe2144156828a0d3ed44e90d59f91475befc1aa3# Parent 9a763bdc1bcf1d789114162674e7c55b2221bed4 Merge pull request #1232 from TheBlueMatt/lockcontention Fix DEBUG_LOCKCONTENTION diff --git a/src/util.h b/src/util.h --- a/src/util.h +++ b/src/util.h @@ -217,9 +217,11 @@ { printf("LOCKCONTENTION: %s\n", pszName); printf("Locker: %s:%d\n", pszFile, nLine); +#endif + lock.lock(); +#ifdef DEBUG_LOCKCONTENTION } #endif - lock.lock(); } }