afs_int32 now;
int code = 1; /* default to yes */
+ if (amIClone) {
+ return 0; /* if we cannot be the sync-site, do not ask for votes */
+ }
+
UBIK_VOTE_LOCK;
now = FT_ApproxTime();
if (BIGTIME + vote_globals.ubik_lastYesTime < now)
vote_globals.ubik_lastYesTime = FT_ApproxTime();
/* Initialize globals */
- vote_globals.ubik_lastYesTime = 0;
vote_globals.lastYesHost = 0xffffffff;
vote_globals.lastYesClaim = 0;
vote_globals.lastYesState = 0;