Whamcloud - gitweb
LU-6471 obdclass: fix llog_cat_cleanup() usage on Client 89/14489/2
authorBruno Faccini <bruno.faccini@intel.com>
Fri, 17 Apr 2015 09:37:51 +0000 (11:37 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 23 Apr 2015 14:04:05 +0000 (14:04 +0000)
commit485f3ba8743365c7fb5823893a7eb45030cdffb5
tree39b4d22625e5b460fe741a70ebe3ca4f903dcbbc
parentfd44a6d8c71e59ed54b36b2b15e2bdd2b9a74d38
LU-6471 obdclass: fix llog_cat_cleanup() usage on Client

With patch/commit 3a83b4b9 for LU-5195, LLOG code has been
strengthen against catalog inconsistency by detecting a
referenced plain LLOG is missing and by clearing its
associated entry by calling llog_cat_cleanup(), which now
needs to handle the case where it is also executed on a Client
(ie, cathandle->lgh_obj == NULL) and thus must not attempt to
update on-disk catalog.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: Ie6fb9240ac76810358a91c7410046c626f42c2b9
Reviewed-on: http://review.whamcloud.com/14489
Tested-by: Jenkins
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/llog_cat.c