mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 05:57:43 +00:00
add-shutdown-server-20040507
FIXES 4067 cleanup server list during shutdown
This commit is contained in:
parent
bfe8ffc727
commit
fc25d8cf69
@ -828,5 +828,6 @@ shutdown_AFS(void)
|
||||
LOCK_INIT(&afs_puttofileLock, "afs_puttofileLock");
|
||||
|
||||
shutdown_cell();
|
||||
shutdown_server();
|
||||
}
|
||||
}
|
||||
|
@ -1706,3 +1706,31 @@ void afs_ActivateServer(struct srvAddr *sap) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void shutdown_server()
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < NSERVERS; i++) {
|
||||
struct server *ts, *next;
|
||||
|
||||
ts = afs_servers[i];
|
||||
while(ts) {
|
||||
next = ts->next;
|
||||
afs_osi_Free(ts, sizeof(struct server));
|
||||
ts = next;
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < NSERVERS; i++) {
|
||||
struct srvAddr *sa, *next;
|
||||
|
||||
sa = afs_srvAddrs[i];
|
||||
while(sa) {
|
||||
next = sa->next_bkt;
|
||||
afs_osi_Free(sa, sizeof(struct srvAddr));
|
||||
sa = next;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user