From d6962529715edf6a835b1d1bba69128b1e9f163a Mon Sep 17 00:00:00 2001 From: Petr Jelinek Date: Sat, 31 May 2014 23:11:55 +0200 Subject: [PATCH] bdr: Remove unused ApplyWorker allocations from _PG_init --- contrib/bdr/bdr.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/contrib/bdr/bdr.c b/contrib/bdr/bdr.c index 676999ca76..4e4c7c3087 100644 --- a/contrib/bdr/bdr.c +++ b/contrib/bdr/bdr.c @@ -1648,19 +1648,13 @@ _PG_init(void) database_initcons = palloc0(sizeof(char *) * list_length(connames)); /* - * Read all connections and create their BdrApplyWorker structs, validating - * parameters and sanity checking as we go. The structs are palloc'd, but - * will be copied into shared memory and free'd during shm init. + * Read all connections, create/validate parameters for them and do sanity + * checks as we go. */ connection_config_idx = 0; foreach(c, connames) { char *name; - BdrApplyWorker *apply_worker; - - apply_worker = (BdrApplyWorker *) palloc0(sizeof(BdrApplyWorker)); - apply_worker->forward_changesets = false; - apply_worker->replay_stop_lsn = InvalidXLogRecPtr; name = (char *) lfirst(c); if (!bdr_create_con_gucs(name, used_databases, &num_used_databases, -- 2.39.5