We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 116e8f9 commit 512867eCopy full SHA for 512867e
src/backend/catalog/storage.c
@@ -175,6 +175,7 @@ void
175
log_smgrcreate(const RelFileNode *rnode, ForkNumber forkNum)
176
{
177
xl_smgr_create xlrec;
178
+ XLogRecPtr lsn;
179
180
/*
181
* Make an XLOG entry reporting the file creation.
@@ -184,7 +185,8 @@ log_smgrcreate(const RelFileNode *rnode, ForkNumber forkNum)
184
185
186
XLogBeginInsert();
187
XLogRegisterData((char *) &xlrec, sizeof(xlrec));
- XLogInsert(RM_SMGR_ID, XLOG_SMGR_CREATE | XLR_SPECIAL_REL_UPDATE);
188
+ lsn = XLogInsert(RM_SMGR_ID, XLOG_SMGR_CREATE | XLR_SPECIAL_REL_UPDATE);
189
+ SetLastWrittenLSNForRelation(lsn, *rnode, forkNum);
190
}
191
192
0 commit comments