I'm trying to use the `memcachec` plugin to read data from the memcached, but when I'm using this config:<br><br> <Plugin "memcachec"><br> <Page "plugin_instance"><br> Key "KEY1"<br>
Server "localhost"<br> ...<br> </Page><br> </Plugin><br><br>I'm getting `memcachec plugin: Option 'server' not allowed here.`, if I remove the server option I get `memcachec plugin: 'Server' missing in 'Page' block.`. I've checked the sources of memcachec and there's this code (memcachec.c, line 329):<br>
<br> if (strcasecmp ("Server", child->key) == 0)<br> status = cmc_config_add_string ("Server", &page->server, child);<br> if (strcasecmp ("Key", child->key) == 0)<br> status = cmc_config_add_string ("Key", &page->key, child);<br>
else if (strcasecmp ("Match", child->key) == 0)<br> /* Be liberal with failing matches => don't set `status'. */<br> cmc_config_add_match (page, child);<br> else<br> {<br> WARNING ("memcachec plugin: Option `%s' not allowed here.", child->key);<br>
status = -1;<br> }<br><br>It seems like the second `if` should have been `else if` for the plugin to work. Is this a bug? <br clear="all"><br>-- <br>Cheers,<br>Rodion<br><br>