Variable name typo in launcher.c
Started by Masahiko Sawadaalmost 9 years ago2 messages
Hi,
I think "laucher" should be "launcher". Attached patch fixes it.
Regards,
--
Masahiko Sawada
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center
Attachments:
fix_typo_launcher_c.patchapplication/octet-stream; name=fix_typo_launcher_c.patchDownload
diff --git a/src/backend/replication/logical/launcher.c b/src/backend/replication/logical/launcher.c
index d222cff..f028d38 100644
--- a/src/backend/replication/logical/launcher.c
+++ b/src/backend/replication/logical/launcher.c
@@ -73,7 +73,7 @@ static void logicalrep_worker_onexit(int code, Datum arg);
static void logicalrep_worker_detach(void);
bool got_SIGTERM = false;
-static bool on_commit_laucher_wakeup = false;
+static bool on_commit_launcher_wakeup = false;
Datum pg_stat_get_subscription(PG_FUNCTION_ARGS);
@@ -170,7 +170,7 @@ WaitForReplicationWorkerAttach(LogicalRepWorker *worker,
/*
* Worker started and attached to our shmem. This check is safe
- * because only laucher ever starts the workers, so nobody can steal
+ * because only launcher ever starts the workers, so nobody can steal
* the worker slot.
*/
if (status == BGWH_STARTED && worker->proc)
@@ -526,7 +526,7 @@ ApplyLauncherShmemInit(void)
void
AtCommit_ApplyLauncher(void)
{
- if (on_commit_laucher_wakeup)
+ if (on_commit_launcher_wakeup)
ApplyLauncherWakeup();
}
@@ -540,8 +540,8 @@ AtCommit_ApplyLauncher(void)
void
ApplyLauncherWakeupAtCommit(void)
{
- if (!on_commit_laucher_wakeup)
- on_commit_laucher_wakeup = true;
+ if (!on_commit_launcher_wakeup)
+ on_commit_launcher_wakeup = true;
}
void
Re: Variable name typo in launcher.c
On 02/05/2017 01:05 AM, Masahiko Sawada wrote:
I think "laucher" should be "launcher". Attached patch fixes it.
Fixed, thanks!
- Heikki
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers