]> git.michaelhowe.org Git - packages/o/openafs.git/commit
ubik: SDISK_Begin no quorum, wrong db, no transaction
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 22 Jan 2015 06:14:28 +0000 (01:14 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 15 Apr 2015 14:20:22 +0000 (10:20 -0400)
commit09c1b9d5cf5aa9249b06b9312bb5e79eb3e06dca
tree97d3495914f41e2931cfb69a4cf0250d9c8fce8f
parent3da7b78ea965e5e1c94cd922eab0ac1d4e3d1b61
ubik: SDISK_Begin no quorum, wrong db, no transaction

When processing an DISK_Begin RPC verify that there is an active quorum
and that the local database is current.  Otherwise, fail the RPC with
a UNOQUORUM error.

The returned error must be UNOQUORUM instead of USYNC becase the returned
error code will be returned by the coordinator's ContactQuorum_iterate()
to the client that triggered the write transaction.  Most ubik clients
will only retry if the error is UNOQUORUM.

FIXES 131997

Change-Id: Icaa30e6aca82e7e7d33e9171a4f023970aba61df
Reviewed-on: http://gerrit.openafs.org/11689
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Daria Brashear <shadow@your-file-system.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Jeffrey Hutzelman <jhutz@cmu.edu>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit d47beca13236c64ed935fabeff9d1001e8a8871f)
Reviewed-on: http://gerrit.openafs.org/11773
Reviewed-by: Chas Williams <3chas3@gmail.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/ubik/remote.c