mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-12 07:36:55 +08:00
Added comments [skip ci]
This commit is contained in:
@@ -74,6 +74,7 @@ RemoveHeapTid(IndexScanDesc scan)
|
|||||||
Size etupSize;
|
Size etupSize;
|
||||||
int idx = -1;
|
int idx = -1;
|
||||||
|
|
||||||
|
/* Safety check */
|
||||||
if (!BufferIsValid(buf) || !OffsetNumberIsValid(so->offno) || !ItemPointerIsValid(&so->heaptid))
|
if (!BufferIsValid(buf) || !OffsetNumberIsValid(so->offno) || !ItemPointerIsValid(&so->heaptid))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -121,6 +122,7 @@ RemoveHeapTid(IndexScanDesc scan)
|
|||||||
GenericXLogFinish(state);
|
GenericXLogFinish(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Unlock buffer */
|
||||||
LockBuffer(buf, BUFFER_LOCK_UNLOCK);
|
LockBuffer(buf, BUFFER_LOCK_UNLOCK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user