OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-1027-g2385d26
Gerrit Code Review
gerrit@openafs.org
Tue, 5 Apr 2011 11:20:29 -0700 (PDT)
The following commit has been merged in the master branch:
commit 2385d26293b9f5b3bd62b7afd5a4e9da17efe7cc
Author: Marc Dionne <marc.c.dionne@gmail.com>
Date: Sat Jan 22 22:17:14 2011 -0500
ubik: Introduce new vote lock
Introduce a new lock to protect ubik data related to voting.
Specifically, it protects the following globals:
ubik_lastYesTime
lastYesHost
lastYesClaim
lastYesState
lowestHost
lowestTime
syncHost
syncTime
ubik_dbVersion
ubik_dbTid
Variables are grouped along with the lock in a new structure.
Also introduce a few helper functions to safely deal with ubik_dbVersion:
uvote_eq_dbVersion: Return true if the passed version is equal to the
current ubik_dbVersion
uvote_set_dbVersion: Set ubik_dbVersion to a specified value
Change-Id: I9bb248d0dfedc363181661ea723cac0af4928644
Reviewed-on: http://gerrit.openafs.org/4156
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/ubik/recovery.c | 2 +-
src/ubik/remote.c | 7 +-
src/ubik/ubik.c | 1 +
src/ubik/ubik.p.h | 29 +++++++-
src/ubik/vote.c | 204 +++++++++++++++++++++++++++++----------------------
5 files changed, 149 insertions(+), 94 deletions(-)
--
OpenAFS Master Repository