Whamcloud - gitweb
LU-5385: HSM: do not call the JSON log function if no log is open 64/11164/2
authorFrank Zago <fzago@cray.com>
Sat, 19 Jul 2014 14:21:10 +0000 (09:21 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 27 Aug 2014 01:42:44 +0000 (01:42 +0000)
commit35d122fd99c961b0b9fd500b3a78bdc0f5334a97
tree216035975f55a1c435e8adee111d579f78289431
parent34df4e41d0ee0079235ec136ddd2a56d7e6707e8
LU-5385: HSM: do not call the JSON log function if no log is open

llapi_hsm_log_ct_registration() and llapi_hsm_log_ct_progress() are
very expensive (fid2path+allocations). Do not let them do anything
if llapi_hsm_write_json_event() is going to discard the JSON record.

Make llapi_hsm_log_ct_registration() and llapi_hsm_log_ct_progress()
static too.

Signed-off-by: frank zago <fzago@cray.com>
Change-Id: Ib10023968a1bd021694bca6338c0a962f58da19a
Reviewed-on: http://review.whamcloud.com/11164
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: jacques-Charles Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Reviewed-by: Patrick Farrell <paf@cray.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/liblustreapi_hsm.c