]> git.michaelhowe.org Git - packages/o/openafs.git/commit
afs: Do not use separate array for srvAddrs
authorAndrew Deason <adeason@sinenomine.net>
Wed, 2 Nov 2011 21:55:49 +0000 (16:55 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Tue, 3 Sep 2013 12:41:00 +0000 (05:41 -0700)
commite77d5cea4a11677fea03abb2eb88717a1b686a94
tree2e23cdf97bde1081a26c1a838317d0ea29f59882
parentb324d126c899dfe38d8eb8be8074beca60fdbb4c
afs: Do not use separate array for srvAddrs

The array of srvAddr structs we use in afs_LoopServers have indices
unrelated to the indices of conns, rxconns, etc. Several places were
assuming that addr[i] corresponded to conn[i], which is not
necessarily true. So instead, do not use the separate addr array
(except when populating the conn and rxconn arrays), and just get the
srvAddr structure by going through the relevant conn[i].

Reviewed-on: http://gerrit.openafs.org/5790
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit f199ac666195771a02e3ebb040c6e5fe47c58c58)

Change-Id: I70be3c518d2b1ccd51e050532d966a27cf22090f
Reviewed-on: http://gerrit.openafs.org/9434
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/afs_prototypes.h
src/afs/afs_server.c