diff options
author | Martin Willi <martin@revosec.ch> | 2010-07-22 13:52:18 +0000 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-07-26 11:33:00 +0200 |
commit | 51217527e6c10cbb772d8956eb11b8c7e66ecb5d (patch) | |
tree | e17e5e8e779907a8ed3b682d23a7b09b172b9163 | |
parent | 2cbc48ecabfbd3b780d3ea16c352156cf5e40f9c (diff) | |
download | strongswan-51217527e6c10cbb772d8956eb11b8c7e66ecb5d.tar.bz2 strongswan-51217527e6c10cbb772d8956eb11b8c7e66ecb5d.tar.xz |
Delay resynchronization request until starter has loaded the configurations
-rw-r--r-- | src/libcharon/plugins/ha/ha_segments.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcharon/plugins/ha/ha_segments.c b/src/libcharon/plugins/ha/ha_segments.c index 5f6e40db2..5cec3c5b0 100644 --- a/src/libcharon/plugins/ha/ha_segments.c +++ b/src/libcharon/plugins/ha/ha_segments.c @@ -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; |