mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Make walsender options order-independent
While doing this, also move base backup options into a struct instead of increasing the number of parameters to multiple functions for each new option.
This commit is contained in:
@@ -399,17 +399,13 @@ HandleReplicationCommand(const char *cmd_string)
|
||||
break;
|
||||
|
||||
case T_BaseBackupCmd:
|
||||
{
|
||||
BaseBackupCmd *cmd = (BaseBackupCmd *) cmd_node;
|
||||
SendBaseBackup((BaseBackupCmd *) cmd_node);
|
||||
|
||||
SendBaseBackup(cmd->label, cmd->progress, cmd->fastcheckpoint);
|
||||
|
||||
/* Send CommandComplete and ReadyForQuery messages */
|
||||
EndCommand("SELECT", DestRemote);
|
||||
ReadyForQuery(DestRemote);
|
||||
/* ReadyForQuery did pq_flush for us */
|
||||
break;
|
||||
}
|
||||
/* Send CommandComplete and ReadyForQuery messages */
|
||||
EndCommand("SELECT", DestRemote);
|
||||
ReadyForQuery(DestRemote);
|
||||
/* ReadyForQuery did pq_flush for us */
|
||||
break;
|
||||
|
||||
default:
|
||||
ereport(FATAL,
|
||||
|
||||
Reference in New Issue
Block a user