From: Sebastian Harl Date: Tue, 11 Dec 2012 08:42:23 +0000 (+0100) Subject: store: Don't return an error if an updated host is too old. X-Git-Tag: sysdb-0.1.0~461 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=22b93dff4d8c4eed238d60f7f6ddc43604206acd;ds=sidebyside store: Don't return an error if an updated host is too old. This may happen, if multiple backends report the same host (which is perfectly fine and the desired behavior in fact). --- diff --git a/src/core/store.c b/src/core/store.c index 9528a31..f80c49e 100644 --- a/src/core/store.c +++ b/src/core/store.c @@ -191,7 +191,9 @@ sc_store_host(const sc_host_t *host) fprintf(stderr, "store: Cannot update host '%s' - " "value too old (%"PRIscTIME" < %"PRIscTIME")\n", host->host_name, last_update, old->host_last_update); - status = -1; + /* don't report an error; the host may be updated by multiple + * backends */ + status = 0; } else { old->host_last_update = last_update;