From 22b93dff4d8c4eed238d60f7f6ddc43604206acd Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Tue, 11 Dec 2012 09:42:23 +0100 Subject: [PATCH] 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). --- src/core/store.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.30.2