From a2fad6e62eaab1390996f45ca1a0083dcfbb7056 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Fri, 15 Mar 2002 15:24:31 +0000 Subject: [PATCH] when moving restart list remove new owner from it --- src/db/dbNotify.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/db/dbNotify.c b/src/db/dbNotify.c index 150bd643e..9bc47d82a 100644 --- a/src/db/dbNotify.c +++ b/src/db/dbNotify.c @@ -287,15 +287,18 @@ static void notifyCancel(PUTNOTIFY *ppn) ellDelete(&ppn->waitList,&ppnnode->node); } /*If on restartList remove it*/ - if(ppn->restartNode.ppnrestartList) + if(ppn->restartNode.ppnrestartList) { ellDelete(&ppn->restartNode.ppnrestartList->restartList, &ppn->restartNode.node); + } /*If this ppn has a restartList move it */ if((pfirst = (PNRESTARTNODE *)ellFirst(&ppn->restartList))) { PNRESTARTNODE *pnext; PUTNOTIFY *pfirstppn; pfirstppn = pfirst->ppn; + ellDelete(&pfirstppn->restartNode.ppnrestartList->restartList, + &pfirstppn->restartNode.node); ellConcat(&pfirstppn->restartList,&ppn->restartList); pnext = (PNRESTARTNODE *)ellFirst(&pfirstppn->restartList); while(pnext) {