Commit 888b7234 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Remove the st_mtime check in vsm_refresh_set

Now that we incrementally read the file, the check if the mtime of the
index file has checked has to go away. If not, the index file will always
be marked as new, forcing a reread of the entire index.
parent d78477d2
...@@ -644,8 +644,7 @@ vsm_refresh_set(struct vsm *vd, struct vsm_set *vs) ...@@ -644,8 +644,7 @@ vsm_refresh_set(struct vsm *vd, struct vsm_set *vs)
st.st_dev != vs->fst.st_dev || st.st_dev != vs->fst.st_dev ||
st.st_mode != vs->fst.st_mode || st.st_mode != vs->fst.st_mode ||
st.st_size < vs->fst.st_size || st.st_size < vs->fst.st_size ||
st.st_nlink < 1 || st.st_nlink < 1)) {
memcmp(&st.st_mtime, &vs->fst.st_mtime, sizeof st.st_mtime))) {
closefd(&vs->fd); closefd(&vs->fd);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment