/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/db-4.8.30/rep/ |
H A D | rep_elect.c | 110 u_int32_t ack, ctlflags, egen, nsites, orig_tally, priority, realpri; local 115 COMPQUIET(egen, 0); 222 ret = __rep_wait(env, &to, 0, rep->egen, REP_F_EPHASE0); 311 * We are about to participate at this egen. We must 312 * write out the next egen before participating in this one 313 * so that if we crash we can never participate in this egen 316 if ((ret = __rep_write_egen(env, rep, rep->egen + 1)) != 0) 320 if (__rep_tally(env, rep, rep->eid, &rep->sites, rep->egen, 1) != 0) { 331 egen = rep->egen; 591 u_int32_t egen; local 807 u_int32_t egen; local [all...] |
H A D | rep_region.c | 324 * Initialize the value of egen in the region. Called only from 326 * as we create the rep region. We set the rep->egen field which 346 rep->egen = rep->gen + 1; 347 if ((ret = __rep_write_egen(env, rep, rep->egen)) != 0) 351 * File exists, open it and read in our egen. 356 if ((ret = __os_read(env, fhp, &rep->egen, sizeof(u_int32_t), 360 (env, "Read in egen %lu", (u_long)rep->egen)); 369 * Write out the egen into the env file. 374 __rep_write_egen(env, rep, egen) [all...] |
H A D | rep_record.c | 445 * Updating of egen will happen when we process the 498 egen_arg.egen = *(u_int32_t *)rec->data; 504 "Received ALIVE egen of %lu, mine %lu", 505 (u_long)egen_arg.egen, (u_long)rep->egen)); 506 if (egen_arg.egen > rep->egen) { 508 * We're changing egen, need to clear out any old 514 * the egen getting incremented on that path. 517 rep->egen [all...] |
H A D | rep_util.c | 696 if (rep->egen <= rep->gen) 697 rep->egen = rep->gen + 1; 704 "egen: %lu. rep version %lu", 705 (u_long)rep->egen, (u_long)rep->version)); 959 __rep_send_vote(env, lsnp, nsites, nvotes, pri, tie, egen, eid, vtype, flags) 964 u_int32_t flags, egen, tie, vtype; 986 ovi.egen = egen; 994 vi.egen = egen; [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/db-4.8.30/rep/ |
H A D | rep_elect.c | 110 u_int32_t ack, ctlflags, egen, nsites, orig_tally, priority, realpri; local 115 COMPQUIET(egen, 0); 222 ret = __rep_wait(env, &to, 0, rep->egen, REP_F_EPHASE0); 311 * We are about to participate at this egen. We must 312 * write out the next egen before participating in this one 313 * so that if we crash we can never participate in this egen 316 if ((ret = __rep_write_egen(env, rep, rep->egen + 1)) != 0) 320 if (__rep_tally(env, rep, rep->eid, &rep->sites, rep->egen, 1) != 0) { 331 egen = rep->egen; 591 u_int32_t egen; local 807 u_int32_t egen; local [all...] |
H A D | rep_region.c | 324 * Initialize the value of egen in the region. Called only from 326 * as we create the rep region. We set the rep->egen field which 346 rep->egen = rep->gen + 1; 347 if ((ret = __rep_write_egen(env, rep, rep->egen)) != 0) 351 * File exists, open it and read in our egen. 356 if ((ret = __os_read(env, fhp, &rep->egen, sizeof(u_int32_t), 360 (env, "Read in egen %lu", (u_long)rep->egen)); 369 * Write out the egen into the env file. 374 __rep_write_egen(env, rep, egen) [all...] |
H A D | rep_record.c | 445 * Updating of egen will happen when we process the 498 egen_arg.egen = *(u_int32_t *)rec->data; 504 "Received ALIVE egen of %lu, mine %lu", 505 (u_long)egen_arg.egen, (u_long)rep->egen)); 506 if (egen_arg.egen > rep->egen) { 508 * We're changing egen, need to clear out any old 514 * the egen getting incremented on that path. 517 rep->egen [all...] |
H A D | rep_util.c | 696 if (rep->egen <= rep->gen) 697 rep->egen = rep->gen + 1; 704 "egen: %lu. rep version %lu", 705 (u_long)rep->egen, (u_long)rep->version)); 959 __rep_send_vote(env, lsnp, nsites, nvotes, pri, tie, egen, eid, vtype, flags) 964 u_int32_t flags, egen, tie, vtype; 986 ovi.egen = egen; 994 vi.egen = egen; [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/rep/ |
H A D | rep_elect.c | 110 u_int32_t ack, ctlflags, egen, nsites, orig_tally, priority, realpri; local 115 COMPQUIET(egen, 0); 222 ret = __rep_wait(env, &to, 0, rep->egen, REP_F_EPHASE0); 311 * We are about to participate at this egen. We must 312 * write out the next egen before participating in this one 313 * so that if we crash we can never participate in this egen 316 if ((ret = __rep_write_egen(env, rep, rep->egen + 1)) != 0) 320 if (__rep_tally(env, rep, rep->eid, &rep->sites, rep->egen, 1) != 0) { 331 egen = rep->egen; 591 u_int32_t egen; local 807 u_int32_t egen; local [all...] |
H A D | rep_region.c | 324 * Initialize the value of egen in the region. Called only from 326 * as we create the rep region. We set the rep->egen field which 346 rep->egen = rep->gen + 1; 347 if ((ret = __rep_write_egen(env, rep, rep->egen)) != 0) 351 * File exists, open it and read in our egen. 356 if ((ret = __os_read(env, fhp, &rep->egen, sizeof(u_int32_t), 360 (env, "Read in egen %lu", (u_long)rep->egen)); 369 * Write out the egen into the env file. 374 __rep_write_egen(env, rep, egen) [all...] |
H A D | rep_record.c | 445 * Updating of egen will happen when we process the 498 egen_arg.egen = *(u_int32_t *)rec->data; 504 "Received ALIVE egen of %lu, mine %lu", 505 (u_long)egen_arg.egen, (u_long)rep->egen)); 506 if (egen_arg.egen > rep->egen) { 508 * We're changing egen, need to clear out any old 514 * the egen getting incremented on that path. 517 rep->egen [all...] |
H A D | rep_util.c | 696 if (rep->egen <= rep->gen) 697 rep->egen = rep->gen + 1; 704 "egen: %lu. rep version %lu", 705 (u_long)rep->egen, (u_long)rep->version)); 959 __rep_send_vote(env, lsnp, nsites, nvotes, pri, tie, egen, eid, vtype, flags) 964 u_int32_t flags, egen, tie, vtype; 986 ovi.egen = egen; 994 vi.egen = egen; [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/dbinc_auto/ |
H A D | rep_auto.h | 32 u_int32_t egen; member in struct:___rep_egen_args 73 u_int32_t egen; member in struct:___rep_vote_info_args
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/db-4.8.30/dbinc_auto/ |
H A D | rep_auto.h | 32 u_int32_t egen; member in struct:___rep_egen_args 73 u_int32_t egen; member in struct:___rep_vote_info_args
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/db-4.8.30/dbinc_auto/ |
H A D | rep_auto.h | 32 u_int32_t egen; member in struct:___rep_egen_args 73 u_int32_t egen; member in struct:___rep_vote_info_args
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/db-4.8.30/test/ |
H A D | rep020.tcl | 162 puts "\t$msg: Run elections to increment egen." 178 puts "\t$msg: Updating egen when getting an old vote." 187 set egen($i) \ 218 # process messages to get the egen updated. 227 error_check_bad egen_changed $newegen($i) $egen($i) 235 # caught up to the others for egen. 250 set egen($i) [stat_field \ 253 error_check_good egen_catchup $egen(4) $egen(3) 266 # Can only get egen fil [all...] |
H A D | rep026.tcl | 182 set egen($i) [stat_field \ 231 egen+1 $newegen($i) [expr $egen($i) + 1] 234 egen_unchanged $newegen($i) $egen($i) 266 # If rep files are in-memory, egen value must come 267 # from other sites instead of the egen file, and 270 set mingen [expr $egen($i) + 1] 272 set mingen [expr $egen($i) + 2] 274 error_check_good egen+more($i) \
|
H A D | rep022.tcl | 219 set egen($i) [stat_field \ 233 set egen($i) [stat_field \ 302 set egen_diff [expr $newegen($i) - $egen($i)]
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/db-4.8.30/test/ |
H A D | rep020.tcl | 162 puts "\t$msg: Run elections to increment egen." 178 puts "\t$msg: Updating egen when getting an old vote." 187 set egen($i) \ 218 # process messages to get the egen updated. 227 error_check_bad egen_changed $newegen($i) $egen($i) 235 # caught up to the others for egen. 250 set egen($i) [stat_field \ 253 error_check_good egen_catchup $egen(4) $egen(3) 266 # Can only get egen fil [all...] |
H A D | rep026.tcl | 182 set egen($i) [stat_field \ 231 egen+1 $newegen($i) [expr $egen($i) + 1] 234 egen_unchanged $newegen($i) $egen($i) 266 # If rep files are in-memory, egen value must come 267 # from other sites instead of the egen file, and 270 set mingen [expr $egen($i) + 1] 272 set mingen [expr $egen($i) + 2] 274 error_check_good egen+more($i) \
|
H A D | rep022.tcl | 219 set egen($i) [stat_field \ 233 set egen($i) [stat_field \ 302 set egen_diff [expr $newegen($i) - $egen($i)]
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/test/ |
H A D | rep020.tcl | 162 puts "\t$msg: Run elections to increment egen." 178 puts "\t$msg: Updating egen when getting an old vote." 187 set egen($i) \ 218 # process messages to get the egen updated. 227 error_check_bad egen_changed $newegen($i) $egen($i) 235 # caught up to the others for egen. 250 set egen($i) [stat_field \ 253 error_check_good egen_catchup $egen(4) $egen(3) 266 # Can only get egen fil [all...] |
H A D | rep026.tcl | 182 set egen($i) [stat_field \ 231 egen+1 $newegen($i) [expr $egen($i) + 1] 234 egen_unchanged $newegen($i) $egen($i) 266 # If rep files are in-memory, egen value must come 267 # from other sites instead of the egen file, and 270 set mingen [expr $egen($i) + 1] 272 set mingen [expr $egen($i) + 2] 274 error_check_good egen+more($i) \
|
H A D | rep022.tcl | 219 set egen($i) [stat_field \ 233 set egen($i) [stat_field \ 302 set egen_diff [expr $newegen($i) - $egen($i)]
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/dbinc/ |
H A D | rep.h | 132 * The file contains an egen number for an election this client has NOT 135 * and initialize egen to 1. If it does exist, we read it when we create 141 #define REP_EGENNAME "__db.rep.egen" 203 u_int32_t egen; /* Replication election generation. */ member in struct:__rep 754 u_int32_t egen; /* Election generation. */ member in struct:__anon35899 763 u_int32_t egen; /* Voter's election generation. */ member in struct:__anon35900
|