Emit content read metadata only after successful content loading
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-arm32 (push) Has been cancelled
Build / build-win (push) Has been cancelled
Build / build-freebsd (push) Has been cancelled
Build / build-musl (push) Has been cancelled
CodeQL Advanced / Analyze (c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled

This commit is contained in:
Andrea Mazzoleni 2026-09-14 23:26:54 +02:00
parent 78abc2c7b7
commit 215aed17e7

View file

@ -5076,12 +5076,6 @@ void state_read(struct snapraid_state* state)
/* LCOV_EXCL_STOP */
}
if (!state->no_conf) {
log_tag("content:%s\n", esc_tag(path));
log_tag("content_info:read_unixtime:%" PRId64 "\n", (int64_t)st.st_mtime);
log_flush();
}
/* go further to check other content files */
while (node) {
char other_path[PATH_MAX];
@ -5168,6 +5162,12 @@ void state_read(struct snapraid_state* state)
state_content_check(state, path);
if (!state->no_conf) {
log_tag("content:%s\n", esc_tag(path));
log_tag("content_info:read_unixtime:%" PRId64 "\n", (int64_t)st.st_mtime);
log_flush();
}
/* mark that we read the content file, and it passed all the checks */
state->checked_read = 1;
}