This commit is contained in:
skywind3000 committed 2020-03-17 02:35:21 +08:00
1 parent 4c34e29e08
commit a1498c8672
1 file changed
+1
+1
View File
@@ -258,6 +258,7 @@ void data_write(const char *filename, ib_array *items)
fprintf(fp, "%s|%u|%u\n",
item->path->ptr, item->rank, item->timestamp);
}
fflush(fp);
flock(fd, LOCK_UN);
fclose(fp);
}