提交 8c68bcc9 编写于 作者: H Heikki Linnakangas

Remove dummy extentseqnum argument.

All callers passed 1, so it didn't do anything interesting.
上级 86ad18ce
......@@ -2386,7 +2386,7 @@ OpenOrCreateSubtransIdFile(DistributedTransactionId dxid)
{
subxip_file = OpenTemporaryFile(
Subtransaction_filename(dxid),
1, false, true, true, false);
false, true, true, false);
// What should be done if this fails ??
}
}
......@@ -2791,7 +2791,7 @@ GetSubXidsInXidBuffer(void)
subxip_file = OpenTemporaryFile(
Subtransaction_filename(
SharedLocalSnapshotSlot->QDxid),
1, false, false, false, false);
false, false, false, false);
if (subxip_file == 0)
{
......@@ -2857,7 +2857,7 @@ ShowSubtransactionsForSharedSnapshot(void)
subxip_file = OpenTemporaryFile(
Subtransaction_filename(
SharedLocalSnapshotSlot->QDxid),
1, false, false, false, false);
false, false, false, false);
if (subxip_file == 0)
{
......
......@@ -105,7 +105,7 @@ BufFileCreateTemp(const char *filePrefix, bool interXact)
File pfile;
bool closeAtEOXact = !interXact;
pfile = OpenTemporaryFile(filePrefix, 1, /* extentseqnum */
pfile = OpenTemporaryFile(filePrefix,
true, /* makenameunique */
true, /* create */
true, /* delOnClose */
......@@ -183,7 +183,7 @@ BufFileCreateTemp_ReaderWriter(const char *filePrefix, bool isWriter,
bool interXact)
{
bool closeAtEOXact = !interXact;
File pfile = OpenTemporaryFile(filePrefix, 1, /* extentseqnum */
File pfile = OpenTemporaryFile(filePrefix,
false, /* makenameunique */
isWriter, /* create */
isWriter, /* delOnClose */
......
......@@ -884,11 +884,10 @@ FileNameOpenFile(FileName fileName, int fileFlags, int fileMode)
* should be unique to this particular OpenTemporaryFile() request and
* distinct from any others in concurrent use on the same host. As a
* convenience for monitoring and debugging, the given 'fileName' string
* and 'extentseqnum' are embedded in the file name.
* is embedded in the file name.
*
* If 'makenameunique' is false, then 'fileName' and 'extentseqnum' identify a
* new or existing temporary file which other processes also could open and
* share.
* If 'makenameunique' is false, then 'fileName' identify a new or existing
* temporary file which other processes also could open and share.
*
* If 'create' is true, a new file is created. If successful, a valid vfd
* index (>0) is returned; otherwise an error is thrown.
......@@ -912,7 +911,6 @@ FileNameOpenFile(FileName fileName, int fileFlags, int fileMode)
*/
File
OpenTemporaryFile(const char *fileName,
int extentseqnum,
bool makenameunique,
bool create,
bool delOnClose,
......@@ -937,18 +935,16 @@ OpenTemporaryFile(const char *fileName,
* database instance.
*/
snprintf(tempfilepath, sizeof(tempfilepath),
"%s_%d_%04d.%ld",
"%s_%d.%ld",
tempfileprefix,
MyProcPid,
extentseqnum,
tempFileCounter++);
}
else
{
snprintf(tempfilepath, sizeof(tempfilepath),
"%s.%04d",
tempfileprefix,
extentseqnum);
"%s",
tempfileprefix);
}
return OpenNamedFile(tempfilepath, create, delOnClose, closeAtEOXact);
......
......@@ -65,7 +65,6 @@ extern File PathNameOpenFile(FileName fileName, int fileFlags, int fileMode);
File
OpenTemporaryFile(const char *fileName,
int extentseqnum,
bool makenameunique,
bool create,
bool delOnClose,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册