mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
Windows: correct CheckOfflineVolumeState logic
Do not blindly set the return 'online' state to TRUE if the state has not in fact changed. Do not blindly clear the 'alldown' flag without checking the actual 'down' state of the file server. Change-Id: Iaad401be067513e2bf42609f0b0d407ba5c6302d Reviewed-on: http://gerrit.openafs.org/5323 Reviewed-by: Jeffrey Altman <jaltman@openafs.org> Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
130144850c
commit
8d4f65c302
@ -1244,8 +1244,9 @@ cm_CheckOfflineVolumeState(cm_volume_t *volp, cm_vol_state_t *statep, afs_uint32
|
||||
continue;
|
||||
|
||||
alldeleted = 0;
|
||||
*onlinep = 1;
|
||||
alldown = 0;
|
||||
|
||||
if (!(serversp->server->flags & CM_SERVERFLAG_DOWN))
|
||||
alldown = 0;
|
||||
|
||||
if (serversp->status == srv_busy || serversp->status == srv_offline)
|
||||
serversp->status = srv_not_busy;
|
||||
|
Loading…
Reference in New Issue
Block a user