Whamcloud - gitweb
LU-14049 utils: manage thread resources in alr_batch_print() 09/40309/5
authorJohn L. Hammond <jhammond@whamcloud.com>
Mon, 14 Sep 2020 17:58:31 +0000 (12:58 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 3 Nov 2020 03:40:01 +0000 (03:40 +0000)
commita88ab3c916151a1c4aaedf358a65fbebb5d4f521
tree42eccf5f34793cae5ce44074b21a9d051c7981ed
parent94b0568059ec9825ee96de89dab8f156703e222c
LU-14049 utils: manage thread resources in alr_batch_print()

In alr_batch_print(), create the sort and print thread with the
detached attribute. Protect against concurrent write the the batch
output file. Ensure that memory is freed in error cases.

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: Ibf1b299bd15f5d189a2302ce476bf2ef986a85b1
Reviewed-on: https://review.whamcloud.com/40309
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/ofd_access_batch.c
lustre/utils/ofd_access_batch.h
lustre/utils/ofd_access_log_reader.c