提交 2c1ace7a 编写于 作者: A Ashwin Agrawal

Fix unused variables warning in RelationCreateStorage()

上级 8b60e44d
......@@ -238,9 +238,6 @@ RelationCreateStorage(RelFileNode rnode, bool isLocalBuf,
int64 mirrorDataLossTrackingSessionNum,
bool *mirrorDataLossOccurred) /* FIXME: is this arg still needed? */
{
XLogRecPtr lsn;
XLogRecData rdata;
xl_smgr_create xlrec;
SMgrRelation srel;
srel = smgropen(rnode);
......@@ -258,6 +255,10 @@ RelationCreateStorage(RelFileNode rnode, bool isLocalBuf,
#ifdef USE_SEGWALREP
if (!isLocalBuf)
{
XLogRecPtr lsn;
XLogRecData rdata;
xl_smgr_create xlrec;
/*
* Make an XLOG entry showing the file creation. If we abort, the file
* will be dropped at abort time.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册