mirror of https://github.com/citusdata/citus.git
Merge pull request #517 from citusdata/fix/fix_469_rename_ReceiveRegularFile
Change duplicated function name - RecieveRegularFile()pull/486/head
commit
c75df74348
|
@ -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
|
* protocol. The function then creates or truncates a file with the given
|
||||||
* filename, and appends received data to this file.
|
* filename, and appends received data to this file.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
ReceiveRegularFile(const char *filename)
|
RedirectCopyDataToRegularFile(const char *filename)
|
||||||
{
|
{
|
||||||
StringInfo copyData = makeStringInfo();
|
StringInfo copyData = makeStringInfo();
|
||||||
bool copyDone = false;
|
bool copyDone = false;
|
||||||
|
|
|
@ -123,7 +123,7 @@ multi_ProcessUtility(Node *parsetree,
|
||||||
/* ->relation->relname is the target file in our overloaded COPY */
|
/* ->relation->relname is the target file in our overloaded COPY */
|
||||||
if (copyStatement->is_from)
|
if (copyStatement->is_from)
|
||||||
{
|
{
|
||||||
ReceiveRegularFile(copyStatement->relation->relname);
|
RedirectCopyDataToRegularFile(copyStatement->relation->relname);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
|
|
||||||
/* Function declarations for transmitting files between two nodes */
|
/* 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);
|
extern void SendRegularFile(const char *filename);
|
||||||
|
|
||||||
/* Function declaration local to commands and worker modules */
|
/* Function declaration local to commands and worker modules */
|
||||||
|
|
Loading…
Reference in New Issue