ladishd: when interlinking on load, ignore clients of other vgraphs. Fix for #137

This commit is contained in:
Nedko Arnaudov 2010-12-25 04:36:00 +02:00
parent a3956df783
commit 6a58ad88a4
1 changed files with 10 additions and 1 deletions

View File

@ -299,6 +299,13 @@ interlink_client(
bool interlinked;
bool jmcore;
ASSERT(ctx_ptr->vgraph != NULL);
if (ctx_ptr->vgraph != ladish_client_get_vgraph(jclient))
{
/* skip clients of different vgraphs */
return true;
}
if (strcmp(name, "system") == 0)
{
return true;
@ -313,7 +320,9 @@ interlink_client(
}
else if (interlinked)
{
ASSERT_NO_PASS; /* jclient has no app associated but is interlinked */
/* jclient has no app associated but is interlinked */
/* this can happen if there is an external app (presumably in a different vgraph) */
ASSERT_NO_PASS; /* if vgraph is different, then we should have skipped the client earlier */
return true;
}
ASSERT(!interlinked);