Skip to content
Snippets Groups Projects
Commit 2a7931e1 authored by Andreas Dilger's avatar Andreas Dilger
Browse files

Branch b1_6

Don't print console message the first time the import is set.
parent e9dc1181
No related branches found
No related tags found
No related merge requests found
......@@ -164,9 +164,11 @@ int llog_receptor_accept(struct llog_ctxt *ctxt, struct obd_import *imp)
LASSERT(ctxt);
mutex_down(&ctxt->loc_sem);
if (ctxt->loc_imp != imp) {
CWARN("changing the import %p - %p\n", ctxt->loc_imp, imp);
if (ctxt->loc_imp)
if (ctxt->loc_imp) {
CWARN("changing the import %p - %p\n",
ctxt->loc_imp, imp);
class_import_put(ctxt->loc_imp);
}
ctxt->loc_imp = class_import_get(imp);
}
mutex_up(&ctxt->loc_sem);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment