]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Delay resynchronization request until starter has loaded the configurations
authorMartin Willi <martin@revosec.ch>
Thu, 22 Jul 2010 13:52:18 +0000 (13:52 +0000)
committerMartin Willi <martin@revosec.ch>
Mon, 26 Jul 2010 09:33:00 +0000 (11:33 +0200)
src/libcharon/plugins/ha/ha_segments.c

index 5f6e40db231bb0cba49faba59b0eff059229b63e..5cec3c5b04b1aed078acc079fe89b0b772877e2d 100644 (file)
@@ -319,6 +319,8 @@ static job_requeue_t request_resync(private_ha_segments_t *this)
        ha_message_t *message;
        int i;
 
+       DBG1(DBG_CFG, "requesting HA resynchronization");
+
        message = ha_message_create(HA_RESYNC);
        for (i = 1; i <= this->count; i++)
        {
@@ -478,9 +480,9 @@ ha_segments_t *ha_segments_create(ha_socket_t *socket, ha_kernel_t *kernel,
        if (sync)
        {
                /* request a resync as soon as we are up */
-               charon->processor->queue_job(charon->processor, (job_t*)
+               charon->scheduler->schedule_job(charon->scheduler, (job_t*)
                                                callback_job_create((callback_job_cb_t)request_resync,
-                                                                                       this, NULL, NULL));
+                                                                                       this, NULL, NULL), 2);
        }
 
        return &this->public;