Jeff Layton has uploaded this change for review.

View Change

rados_cluster: start grace period after creating new recovery DB

We don't want to mark ourselves as enforcing until we have the new
recovery DB in place. Another node could end up lifting the grace period
before we've generated the new database. An inopportune crash at that
point could lead to client records being lost in the transition.

Start the new grace period after changing the OID strings and creating
the database for the new epoch.

Change-Id: I628537d75856b1549bc578de8428bec484bd2cbd
Reported-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
M src/SAL/recovery/recovery_rados_cluster.c
1 file changed, 9 insertions(+), 2 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/32/415232/1

To view, visit change 415232. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: I628537d75856b1549bc578de8428bec484bd2cbd
Gerrit-Change-Number: 415232
Gerrit-PatchSet: 1
Gerrit-Owner: Jeff Layton <jlayton@redhat.com>