pgvector.git / summary / log / commit / refs
commit ec41dfa1d74774a87346d8a3bdc258afee877db9
Author: Andrew Kane <andrew@ankane.org>
Date: Wed Dec 20 21:20:15 2023 +0000
Mark meta buffer contents as dirty when not logging
src/hnswutils.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/hnswutils.c b/src/hnswutils.c
index 1dd61253..ed74f5ae 100644
--- a/src/hnswutils.c
+++ b/src/hnswutils.c
@@ -379,7 +379,9 @@ HnswUpdateMetaPage(Relation index, int updateEntry, HnswElement entryPoint, Bloc
HnswUpdateMetaPageInfo(page, updateEntry, entryPoint, insertPage);
- if (!building)
+ if (building)
+ MarkBufferDirty(buf);
+ else
GenericXLogFinish(state);
UnlockReleaseBuffer(buf);
}
[parent: 43e0b3d9d415]