Code

store: Consider objects too old if the new timestamp matches the old.
[sysdb.git] / src / core / store.c
index 8b284e77378bba680ead5d0edc8854049305a955..fc2a7f472d6dbdc0fb7111c2096cbfde38741d6f 100644 (file)
@@ -250,7 +250,7 @@ store_obj(sdb_llist_t *parent_list, int type, const char *name,
 
        old = STORE_OBJ(sdb_llist_search_by_name(parent_list, name));
        if (old) {
-               if (old->last_update > last_update) {
+               if (old->last_update >= last_update) {
                        sdb_log(SDB_LOG_DEBUG, "store: Cannot update %s '%s' - "
                                        "value too old (%"PRIscTIME" < %"PRIscTIME")",
                                        SDB_STORE_TYPE_TO_NAME(type), name,