mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-14 00:26:55 +08:00
Insert before unlocking new buffer
This commit is contained in:
@@ -130,9 +130,14 @@ InsertTuple(Relation rel, IndexTuple itup, Relation heapRel, Datum *values)
|
|||||||
/* Unlock extend relation lock as early as possible */
|
/* Unlock extend relation lock as early as possible */
|
||||||
UnlockReleaseBuffer(metabuf);
|
UnlockReleaseBuffer(metabuf);
|
||||||
|
|
||||||
/* Unlock rest */
|
/* Unlock previous buffer */
|
||||||
UnlockReleaseBuffer(newbuf);
|
|
||||||
UnlockReleaseBuffer(buf);
|
UnlockReleaseBuffer(buf);
|
||||||
|
|
||||||
|
/* Prepare new buffer */
|
||||||
|
state = GenericXLogStart(rel);
|
||||||
|
buf = newbuf;
|
||||||
|
page = GenericXLogRegisterBuffer(state, buf, 0);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user