Code

store: Don't return an error if an updated host is too old.
[sysdb.git] / src / core / store.c
index 9528a310785a9714135fdd55c37e9f3a5f632804..f80c49e15d8964c606a32dad0470755cef9efed3 100644 (file)
@@ -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;