Fix typo in comment
authorMagnus Hagander
Tue, 20 Apr 2021 12:35:16 +0000 (14:35 +0200)
committerMagnus Hagander
Tue, 20 Apr 2021 12:36:41 +0000 (14:36 +0200)
Author: Julien Rouhaud
Backpatch-through: 11
Discussion: https://postgr.es/m/20210420121659.odjueyd4rpilorn5@nol

src/backend/lib/dshash.c

index 78ccf03217fe154e1608706bcca61c7157d414f3..782b509fd9f342ec4d793edb7447bcc006e62b4e 100644 (file)
@@ -375,7 +375,7 @@ dshash_get_hash_table_handle(dshash_table *hash_table)
  * the caller must take care to ensure that the entry is not left corrupted.
  * The lock mode is either shared or exclusive depending on 'exclusive'.
  *
- * The caller must not lock a lock already.
+ * The caller must not hold a lock already.
  *
  * Note that the lock held is in fact an LWLock, so interrupts will be held on
  * return from this function, and not resumed until dshash_release_lock is