Searched refs:nvotes (Results 1 - 25 of 28) sorted by relevance

12

/macosx-10.10.1/BerkeleyDB-21/db/test/
H A Drep016.tcl8 # TEST Replication election test with varying required nvotes.
47 Replication elections with varying nvotes."
134 # First check negative nvotes.
146 set nvotes 2
147 set res [catch {$clientenv(0) rep_elect $nsites $nvotes $priority \
153 # Check nvotes > nsites.
156 set nvotes [expr $nsites + 1]
157 set res [catch {$clientenv(0) rep_elect $nsites $nvotes $priority \
193 set nvotes 1
200 $qdir $m $elector $nsites $nvotes
[all...]
H A Drep020.tcl127 set nvotes $nclients
134 $msg $elector $nsites $nvotes $nclients $winner 1 test.db
157 set orig_nvotes $nvotes
159 set nvotes [expr $orig_nvotes - 1]
166 $msg $elector $nsites $nvotes $nclients $winner 1 test.db
199 set nvotes $orig_nvotes
204 $msg $elector $nsites $nvotes $nclients $winner 0 test.db
257 $msg $elector $nsites $nvotes $nclients $winner 1 test.db
H A Drep063.tcl203 set nvotes $nclients
208 $qdir $m $elector $nsites $nvotes $nclients $winner 0 test.db
236 $m $elector $nsites $nvotes $nclients $winner 0 test.db
255 $m $elector $nsites $nvotes $nclients $winner 0 test.db
273 set nvotes $nclients
284 $m $elector $nsites $nvotes $nclients $winner 0 test.db
298 set nvotes $nclients
311 $m $elector $nsites $nvotes $nclients $winner 0 test.db
H A Drep076.tcl133 set nvotes $nclients
154 $elector $nsites $nvotes $nclients $winner1 0 test.db 1
161 $elector $nsites $nvotes $nclients $winner2 0 test.db
H A Drep079.tcl108 # set it in nvotes.]
110 set nvotes 3
213 set res [catch {$clientenv2 rep_elect $nsites $nvotes $pri(2) \
235 set nvotes [expr $nsites - 1]
248 $elector 0 $nvotes $nsites $winner 0 NULL
H A Drep022.tcl140 set nvotes 3
145 $qdir $msg $elector $nsites $nvotes $nclients $winner 0 test.db
207 $qdir $msg $elector $nsites $nvotes $nclients $winner 0 test.db
264 set nvotes $nclients
269 $qdir $msg $elector $nsites $nvotes $nclients $winner 0 test.db
H A Drep026.tcl173 set nvotes $nclients
182 $msg $elector $nsites $nvotes $nclients $winner 0 test.db
233 $msg $elector2 $nsites $nvotes $nclients $winner 1 test.db
H A Drep002.tcl246 set nvotes $nclients
252 $elector $nsites $nvotes $nclients $win 1 "test$tnum.db"
280 $nvotes $nclients $win 1 "test$tnum.db"} res]} {
H A Drep005.tcl234 set nvotes $nsites
236 $qdir $msg $el $nsites $nvotes $nclients $win \
H A Drep069.tcl222 set nvotes $nclients
234 $qdir $m $elector $nsites $nvotes $nclients $winner \
H A Drep078.tcl173 set nvotes $nsites
184 $elector 0 $nvotes $nsites $winner 0 NULL
H A Drep067.tcl258 # If we want all sites, then set nsites and nvotes the same.
267 set nvotes $nclients
269 $qdir $msg $elector $nsites $nvotes $nclients $win \
H A Dreputils.tcl936 { pfx qdir envstring nsites nvotes pri timeout {err "none"} {crash 0}} {
968 $nvotes $pri $timeout\} ret\]"
981 $nvotes $pri $timeout\} ret\]"
1046 # nvotes Number of votes required to win the election.
1061 qdir msg elector nsites nvotes nclients win reopen\
1126 # We need to somehow check for the warning if nvotes is not
1134 nvotes=$nvotes, nclients=$nclients"
1140 $pfx $qdir $env_cmd($elector) $nsites $nvotes $pri($elector) \
1287 $nvotes
[all...]
/macosx-10.10.1/BerkeleyDB-21/db/rep/
H A Drep_elect.c27 ((rep)->votes >= (rep)->nvotes && winner == (rep)->eid)
46 __rep_elect(dbenv, given_nsites, nvotes, flags)
48 u_int32_t given_nsites, nvotes;
87 * previously via rep_set_nsites. Similarly, if the given nvotes is 0,
91 ack = nvotes == 0 ? ELECTION_MAJORITY(nsites) : nvotes;
103 "DB_ENV->rep_elect:WARNING: nvotes (%d) is sub-majority with nsites (%d)",
104 nvotes, nsites);
109 "DB_ENV->rep_elect: nvotes (%d) is larger than nsites (%d)",
338 if (rep->sites >= rep->nvotes) {
[all...]
H A Drep.src112 ARG nvotes u_int32_t
H A Drep_stub.c102 __rep_elect(dbenv, nsites, nvotes, flags)
104 u_int32_t nsites, nvotes;
108 COMPQUIET(nvotes, 0);
H A Drep_util.c948 __rep_send_vote(env, lsnp, nsites, nvotes, pri, tie, egen, eid, vtype, flags)
952 u_int32_t nsites, nvotes, pri;
978 ovi.nvotes = (int) nvotes;
986 vi.nvotes = nvotes;
H A Drep_auto.c642 DB_HTONL_COPYOUT(env, bp, argp->nvotes);
666 DB_NTOHL_COPYIN(env, argp->nvotes, bp);
H A Drep_stat.c102 stats->st_election_nvotes = rep->nvotes;
471 STAT_LONG("Votes needed for election", rep->nvotes);
/macosx-10.10.1/BerkeleyDB-21/db/repmgr/
H A Drepmgr_elect.c123 u_int32_t nsites, nvotes; local
201 nvotes = 1;
203 nvotes = ELECTION_MAJORITY(nsites);
211 * nvotes calculation.
214 * turned on, now nvotes would be 2, and it doesn't make
217 * nvotes.
219 if (failure_recovery && nsites > nvotes)
223 __rep_elect(dbenv, nsites, nvotes, 0)) {
/macosx-10.10.1/BerkeleyDB-21/db/dbinc_auto/
H A Drep_auto.h75 u_int32_t nvotes; member in struct:___rep_vote_info_args
/macosx-10.10.1/BerkeleyDB-21/db/dbinc/
H A Drep.h205 u_int32_t nvotes; /* Number of votes needed. */ member in struct:__rep
624 int nvotes; /* Number of votes needed to win. */ member in struct:__anon304
/macosx-10.10.1/BerkeleyDB-21/db/java/src/com/sleepycat/db/
H A DEnvironment.java779 @param nvotes
790 public void electReplicationMaster(int nsites, int nvotes) argument
792 dbenv.rep_elect(nsites, nvotes, 0 /* unused flags */);
/macosx-10.10.1/BerkeleyDB-21/db/tcl/
H A Dtcl_rep.c309 u_int32_t full_timeout, nsites, nvotes, pri, timeout; local
313 "nsites nvotes pri timeout [full_timeout]");
319 if ((result = _GetUInt32(interp, objv[3], &nvotes)) != TCL_OK)
346 ret = dbenv->rep_elect(dbenv, nsites, nvotes, 0);
958 MAKE_STAT_LIST("Election nvotes", sp->st_election_nvotes);
/macosx-10.10.1/BerkeleyDB-21/db/java/src/com/sleepycat/db/internal/
H A DDbEnv.java528 public void rep_elect(int nsites, int nvotes, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_rep_elect(swigCPtr, this, nsites, nvotes, flags); } argument

Completed in 240 milliseconds

12