/macosx-10.10.1/BerkeleyDB-21/db/test/ |
H A D | rep016.tcl | 8 # 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 D | rep020.tcl | 127 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 D | rep063.tcl | 203 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 D | rep076.tcl | 133 set nvotes $nclients 154 $elector $nsites $nvotes $nclients $winner1 0 test.db 1 161 $elector $nsites $nvotes $nclients $winner2 0 test.db
|
H A D | rep079.tcl | 108 # 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 D | rep022.tcl | 140 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 D | rep026.tcl | 173 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 D | rep002.tcl | 246 set nvotes $nclients 252 $elector $nsites $nvotes $nclients $win 1 "test$tnum.db" 280 $nvotes $nclients $win 1 "test$tnum.db"} res]} {
|
H A D | rep005.tcl | 234 set nvotes $nsites 236 $qdir $msg $el $nsites $nvotes $nclients $win \
|
H A D | rep069.tcl | 222 set nvotes $nclients 234 $qdir $m $elector $nsites $nvotes $nclients $winner \
|
H A D | rep078.tcl | 173 set nvotes $nsites 184 $elector 0 $nvotes $nsites $winner 0 NULL
|
H A D | rep067.tcl | 258 # 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 D | reputils.tcl | 936 { 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 D | rep_elect.c | 27 ((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 D | rep.src | 112 ARG nvotes u_int32_t
|
H A D | rep_stub.c | 102 __rep_elect(dbenv, nsites, nvotes, flags) 104 u_int32_t nsites, nvotes; 108 COMPQUIET(nvotes, 0);
|
H A D | rep_util.c | 948 __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 D | rep_auto.c | 642 DB_HTONL_COPYOUT(env, bp, argp->nvotes); 666 DB_NTOHL_COPYIN(env, argp->nvotes, bp);
|
H A D | rep_stat.c | 102 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 D | repmgr_elect.c | 123 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 D | rep_auto.h | 75 u_int32_t nvotes; member in struct:___rep_vote_info_args
|
/macosx-10.10.1/BerkeleyDB-21/db/dbinc/ |
H A D | rep.h | 205 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 D | Environment.java | 779 @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 D | tcl_rep.c | 309 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 D | DbEnv.java | 528 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
|