Commit a2c476b5 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

Use shared lock when building indices

parent 110ba08a
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.23 1997/09/18 20:20:14 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.24 1997/10/27 11:52:43 vadim Exp $
* *
* *
* INTERFACE ROUTINES * INTERFACE ROUTINES
...@@ -1103,9 +1103,12 @@ index_create(char *heapRelationName, ...@@ -1103,9 +1103,12 @@ index_create(char *heapRelationName,
/* ---------------- /* ----------------
* write lock heap to guarantee exclusive access * write lock heap to guarantee exclusive access
* ---------------- * ----------------
RelationSetLockForWrite(heapRelation);
* ^^^^^
* Does it have any sense ? - vadim 10/27/97
*/ */
RelationSetLockForWrite(heapRelation); RelationSetLockForRead(heapRelation);
/* ---------------- /* ----------------
* construct new tuple descriptor * construct new tuple descriptor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment