In ofd_access_log_reader, move flushing of the batch file thread to
the sort and print thread.
Test-Parameters: trivial
Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: Id1e008ede6c05e24ea2e2459520d6585007acc7d
Reviewed-on: https://review.whamcloud.com/40310
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
list_for_each_entry_safe(alre, next, tmp, alre_fid_hash_node.fhn_node) {
alre_del_init(alre);
free(alre);
list_for_each_entry_safe(alre, next, tmp, alre_fid_hash_node.fhn_node) {
alre_del_init(alre);
free(alre);
alr_batch_file_path, strerror(errno));
goto out;
}
alr_batch_file_path, strerror(errno));
goto out;
}
-
- /* FIXME: blocking write to batch file. */
- rc = fflush(alr_batch_file);
- if (rc < 0) {
- ERROR("cannot write to '%s': %s\n",
- alr_batch_file_path, strerror(errno));
- goto out;
- }
out:
/* Failed writes will leave alr_batch_file (pipe) in a
* weird state so make that fatal. */
out:
/* Failed writes will leave alr_batch_file (pipe) in a
* weird state so make that fatal. */