• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/db-4.7.25.NC/rep/

Lines Matching refs:nsites

17  * We need to check sites == nsites, not more than half
24 ((rep)->sites >= (rep)->nsites && (rep)->w_priority > 0)
60 u_int32_t ack, ctlflags, egen, nsites, orig_tally, priority, realpri;
75 "DB_ENV->rep_elect: nsites must be zero if leases configured");
86 * Specifying 0 for nsites signals us to use the value configured
90 nsites = given_nsites == 0 ? rep->config_nsites : given_nsites;
91 ack = nvotes == 0 ? ELECTION_MAJORITY(nsites) : nvotes;
101 if (ack <= (nsites / 2)) {
103 "DB_ENV->rep_elect:WARNING: nvotes (%d) is sub-majority with nsites (%d)",
104 nvotes, nsites);
107 if (nsites < ack) {
109 "DB_ENV->rep_elect: nvotes (%d) is larger than nsites (%d)",
110 ack, nsites);
127 (env, "Start election nsites %d, ack %d, priority %d",
128 nsites, ack, realpri));
145 if ((ret = __rep_elect_init(env, nsites, ack,
282 __rep_send_vote(env, &lsn, nsites, ack, priority, tiebreaker, egen,
362 rep->sites, rep->nvotes, rep->nsites);
366 rep->sites, rep->nvotes, rep->nsites);
435 "After phase 2: votes %d, nvotes %d, nsites %d",
436 rep->votes, rep->nvotes, rep->nsites));
544 tmpvi.nsites = (u_int32_t)ovi->nsites;
599 rep->nsites = vi->nsites;
602 if (vi->nsites > rep->nsites)
603 rep->nsites = vi->nsites;
612 if (rep->sites + 1 > rep->nsites)
613 rep->nsites = rep->sites + 1;
614 if (rep->nsites > rep->asites &&
615 (ret = __rep_grow_sites(env, rep->nsites)) != 0) {
766 tmpvi.nsites = (u_int32_t)ovi->nsites;
970 __rep_elect_init(env, nsites, nvotes, beginp, otally)
972 u_int32_t nsites, nvotes;
1017 if (nsites > rep->asites &&
1018 (ret = __rep_grow_sites(env, nsites)) != 0)
1029 rep->nsites = nsites;
1032 if (nsites > rep->nsites)
1033 rep->nsites = nsites;