diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/storage/lwlock.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/include/storage/lwlock.h b/src/include/storage/lwlock.h index 5e6299af1d0..3db11e43f0d 100644 --- a/src/include/storage/lwlock.h +++ b/src/include/storage/lwlock.h @@ -57,15 +57,11 @@ typedef struct LWLockTranche */ typedef struct LWLock { - slock_t mutex; /* Protects LWLock and queue of PGPROCs */ uint16 tranche; /* tranche ID */ - pg_atomic_uint32 state; /* state of exclusive/nonexclusive lockers */ -#ifdef LOCK_DEBUG - pg_atomic_uint32 nwaiters; /* number of waiters */ -#endif dlist_head waiters; /* list of waiting PGPROCs */ #ifdef LOCK_DEBUG + pg_atomic_uint32 nwaiters; /* number of waiters */ struct PGPROC *owner; /* last exclusive owner of the lock */ #endif } LWLock; |