pgvector.git / summary / log / commit / refs
commit f6fc0336228127e6affada0be24d71cf65dd4abf
Author: Andrew Kane <andrew@ankane.org>
Date: Mon Jul 17 20:08:27 2023 +0000
Removed unneeded comments [skip ci]
src/ivfinsert.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/src/ivfinsert.c b/src/ivfinsert.c
index 8e64f64f..cc744af9 100644
--- a/src/ivfinsert.c
+++ b/src/ivfinsert.c
@@ -125,17 +125,9 @@ InsertTuple(Relation rel, Datum *values, bool *isnull, ItemPointer heap_tid, Rel
Buffer newbuf;
Page newpage;
- /*
- * From ReadBufferExtended: Caller is responsible for ensuring
- * that only one backend tries to extend a relation at the same
- * time!
- */
- LockRelationForExtension(rel, ExclusiveLock);
-
/* Add a new page */
+ LockRelationForExtension(rel, ExclusiveLock);
newbuf = IvfflatNewBuffer(rel, MAIN_FORKNUM);
-
- /* Unlock extend relation lock as early as possible */
UnlockRelationForExtension(rel, ExclusiveLock);
/* Init new page */
[parent: 518a35784da4]