ubik: Abstract common code in ContactQuorum* functions
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 22 Jan 2011 21:04:47 +0000 (16:04 -0500)
committerDerrick Brashear <shadow@dementia.org>
Thu, 17 Feb 2011 22:08:45 +0000 (14:08 -0800)
commit249d65e72592b707fcc794be5f8af10a67c55e26
tree4d6d426e0fb86f329971cca285377745c1dd4259
parent470a6d46175125bfe15bb267ee8f77d60132592a
ubik: Abstract common code in ContactQuorum* functions

These functions are mostly identical except for the arguments and the
called operation.  Move as much common code as possible to an iterator
function and a return code check function.  The DISK_WriteV case is
treated a bit differently since it can fall back to using DISK_Write.

This reduces code duplication and shoud simplify maintenance and
future changes.  There should be no functional changes.

Change-Id: If2f88c670da47eaad4baa81975ecc307013f5ce8
Reviewed-on: http://gerrit.openafs.org/3970
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/ubik/ubik.c