Remove the placeholder LWLockId in place of the removed FreeSpaceLock.
authorHeikki Linnakangas <heikki@enterprisedb.com>
Tue, 3 Mar 2009 08:11:24 +0000 (08:11 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Tue, 3 Mar 2009 08:11:24 +0000 (08:11 +0000)
As pointed out by ITAGAKI Takahiro, we split SInvalLock into two in 8.4,
so to keep the numbers of the rest of the locks unchanged from 8.3, we
don't need a placeholder.

src/include/storage/lwlock.h

index a323db89410257b323f9b680e8bef6ddb723c401..e389c61c1d06fe002ef394c5e14094e6988348d4 100644 (file)
@@ -36,9 +36,9 @@
  * The extra value MaxDynamicLWLock is there to keep the compiler from
  * deciding that the enum can be represented as char or short ...
  *
- * If you remove a lock, please replace it with a placeholder like was done
- * for FreeSpaceMapLock. This retains the lock numbering, which is helpful for
- * DTrace and other external debugging scripts.
+ * If you remove a lock, please replace it with a placeholder. This retains
+ * the lock numbering, which is helpful for DTrace and other external
+ * debugging scripts.
  */
 typedef enum LWLockId
 {
@@ -49,7 +49,6 @@ typedef enum LWLockId
        ProcArrayLock,
        SInvalReadLock,
        SInvalWriteLock,
-       UnusedLock1,                            /* FreeSpaceMapLock used to be here */
        WALInsertLock,
        WALWriteLock,
        ControlFileLock,