From: Marc Fournier Date: Tue, 24 Jun 2014 14:38:28 +0000 (+0200) Subject: amqp: new Queue{Durable,AutoDelete} options are subscribe-only options X-Git-Tag: collectd-5.5.0~284^2~1 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=0d0886aa52d982cec71aedd688b2a941b3d2dc47 amqp: new Queue{Durable,AutoDelete} options are subscribe-only options --- diff --git a/src/amqp.c b/src/amqp.c index 3f33ff78..a1fb794c 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -928,9 +928,9 @@ static int camqp_config_connection (oconfig_item_t *ci, /* {{{ */ status = cf_util_get_string (child, &conf->exchange_type); else if ((strcasecmp ("Queue", child->key) == 0) && !publish) status = cf_util_get_string (child, &conf->queue); - else if (strcasecmp ("QueueDurable", child->key) == 0) + else if ((strcasecmp ("QueueDurable", child->key) == 0) && !publish) status = cf_util_get_boolean (child, &conf->queue_durable); - else if (strcasecmp ("QueueAutoDelete", child->key) == 0) + else if ((strcasecmp ("QueueAutoDelete", child->key) == 0) && !publish) status = cf_util_get_boolean (child, &conf->queue_auto_delete); else if (strcasecmp ("RoutingKey", child->key) == 0) status = cf_util_get_string (child, &conf->routing_key);