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;
int idx = -1;
/* Safety check */
if (!BufferIsValid(buf) || !OffsetNumberIsValid(so->offno) || !ItemPointerIsValid(&so->heaptid))
return;
@@ -121,6 +122,7 @@ RemoveHeapTid(IndexScanDesc scan)
GenericXLogFinish(state);
}
/* Unlock buffer */
LockBuffer(buf, BUFFER_LOCK_UNLOCK);
}