Fix flags init

parent 06f4ce5d
......@@ -180,6 +180,8 @@ tus_objiterator(struct worker *wrk, struct objcore *oc,
oc = NULL;
(void) oc; // flexelint
flags = OBJ_ITER_FLUSH;
for (i = 0; i < c->n; i++) {
fcore = c->cores[i];
CHECK_OBJ_NOTNULL(fcore, VMOD_TUS_FILE_CORE_MAGIC);
......@@ -192,7 +194,6 @@ tus_objiterator(struct worker *wrk, struct objcore *oc,
AZ(posix_madvise(p, len, POSIX_MADV_SEQUENTIAL));
AZ(posix_madvise(p, len, POSIX_MADV_WILLNEED));
off = 0;
flags = OBJ_ITER_FLUSH;
do {
len = fcore->len - off;
if (len > max_write)
......
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