Added comments [skip ci]

This commit is contained in:
Andrew Kane
2023-09-03 15:42:15 -07:00
parent d6ac7b93bb
commit 3f49343a79

View File

@@ -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);
} }