From ab4b8d78a8d67b10f35a588dd1cc7bb42a759abe Mon Sep 17 00:00:00 2001 From: yury Date: Sun, 24 Aug 2008 15:53:50 +0000 Subject: [PATCH] b=14608 r=wangdi,shadow - new recov thread code; - cleanups and fixes. --- lustre/obdclass/obd_config.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lustre/obdclass/obd_config.c b/lustre/obdclass/obd_config.c index d935f6a..592bc55 100644 --- a/lustre/obdclass/obd_config.c +++ b/lustre/obdclass/obd_config.c @@ -490,7 +490,6 @@ int class_cleanup(struct obd_device *obd, struct lustre_cfg *lcfg) if (err) CERROR("Precleanup %s returned %d\n", obd->obd_name, err); - class_decref(obd); obd->obd_set_up = 0; @@ -1176,15 +1175,15 @@ int class_config_parse_llog(struct llog_ctxt *ctxt, char *name, /* continue processing from where we last stopped to end-of-log */ if (cfg) - cd.first_idx = cfg->cfg_last_idx; - cd.last_idx = 0; + cd.lpcd_first_idx = cfg->cfg_last_idx; + cd.lpcd_last_idx = 0; rc = llog_process(llh, class_config_llog_handler, cfg, &cd); CDEBUG(D_CONFIG, "Processed log %s gen %d-%d (rc=%d)\n", name, - cd.first_idx + 1, cd.last_idx, rc); + cd.lpcd_first_idx + 1, cd.lpcd_last_idx, rc); if (cfg) - cfg->cfg_last_idx = cd.last_idx; + cfg->cfg_last_idx = cd.lpcd_last_idx; parse_out: rc2 = llog_close(llh); -- 1.8.3.1