This change renames one of the ReceiveRegularFile functions with
more descriptive name.
pull/517/head
Burak Yucesoy 2016-05-12 16:45:24 +03:00
parent ad61d4ae06
commit 0e71ffd937
3 changed files with 4 additions and 4 deletions

View File

@ -31,12 +31,12 @@ static bool ReceiveCopyData(StringInfo copyData);
/*
* ReceiveRegularFile receives data from stdin using the standard copy
* RedirectCopyDataToRegularFile receives data from stdin using the standard copy
* protocol. The function then creates or truncates a file with the given
* filename, and appends received data to this file.
*/
void
ReceiveRegularFile(const char *filename)
RedirectCopyDataToRegularFile(const char *filename)
{
StringInfo copyData = makeStringInfo();
bool copyDone = false;

View File

@ -123,7 +123,7 @@ multi_ProcessUtility(Node *parsetree,
/* ->relation->relname is the target file in our overloaded COPY */
if (copyStatement->is_from)
{
ReceiveRegularFile(copyStatement->relation->relname);
RedirectCopyDataToRegularFile(copyStatement->relation->relname);
}
else
{

View File

@ -15,7 +15,7 @@
/* Function declarations for transmitting files between two nodes */
extern void ReceiveRegularFile(const char *filename);
extern void RedirectCopyDataToRegularFile(const char *filename);
extern void SendRegularFile(const char *filename);
/* Function declaration local to commands and worker modules */