bdr: Remove unused ApplyWorker allocations from _PG_init
authorPetr Jelinek <git@pjmodos.net>
Sat, 31 May 2014 21:11:55 +0000 (23:11 +0200)
committerAndres Freund <andres@anarazel.de>
Thu, 3 Jul 2014 15:55:39 +0000 (17:55 +0200)
contrib/bdr/bdr.c

index 676999ca76551fc05508880debe80437b5dcff2c..4e4c7c3087fdf1de3865378814825e83e271296c 100644 (file)
@@ -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,