• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/db-4.7.25.NC/rep/

Lines Matching defs:rep

67 	REP *rep;
72 rep = db_rep->region;
87 dolock = FLD_ISSET(rep->flags, REP_F_RECOVER_MASK) ? 0 : 1;
88 memcpy(stats, &rep->stat, sizeof(*stats));
91 if (F_ISSET(rep, REP_F_EPHASE1))
93 else if (F_ISSET(rep, REP_F_EPHASE2))
96 stats->st_election_nsites = rep->sites;
97 stats->st_election_cur_winner = rep->winner;
98 stats->st_election_priority = rep->w_priority;
99 stats->st_election_gen = rep->w_gen;
100 stats->st_election_lsn = rep->w_lsn;
101 stats->st_election_votes = rep->votes;
102 stats->st_election_nvotes = rep->nvotes;
103 stats->st_election_tiebreaker = rep->w_tiebreaker;
105 /* Copy out other info that's protected by the rep mutex. */
106 stats->st_env_id = rep->eid;
107 stats->st_env_priority = rep->priority;
108 stats->st_nsites = rep->nsites;
109 stats->st_master = rep->master_id;
110 stats->st_gen = rep->gen;
111 stats->st_egen = rep->egen;
113 if (F_ISSET(rep, REP_F_MASTER))
115 else if (F_ISSET(rep, REP_F_CLIENT))
121 queued = rep->stat.st_log_queued;
122 startupdone = rep->stat.st_startup_complete;
123 memset(&rep->stat, 0, sizeof(rep->stat));
124 rep->stat.st_log_queued = rep->stat.st_log_queued_total =
125 rep->stat.st_log_queued_max = queued;
126 rep->stat.st_startup_complete = startupdone;
134 MUTEX_LOCK(env, rep->mtx_clientdb);
135 if (F_ISSET(rep, REP_F_CLIENT)) {
138 stats->st_next_pg = rep->ready_pg;
139 stats->st_waiting_pg = rep->waiting_pg;
144 if (F_ISSET(rep, REP_F_MASTER)) {
156 MUTEX_UNLOCK(env, rep->mtx_clientdb);
438 REP *rep;
442 rep = db_rep->region;
460 "Replication region mutex", rep->mtx_region, flags);
462 "Bookkeeping database mutex", rep->mtx_clientdb, flags);
464 STAT_LONG("Environment ID", rep->eid);
465 STAT_LONG("Master environment ID", rep->master_id);
466 STAT_ULONG("Election generation", rep->egen);
467 STAT_ULONG("Election generation number", rep->gen);
468 STAT_ULONG("Last generation number in log", rep->recover_gen);
469 STAT_LONG("Space allocated for sites", rep->asites);
470 STAT_LONG("Sites in group", rep->nsites);
471 STAT_LONG("Votes needed for election", rep->nvotes);
472 STAT_LONG("Priority in election", rep->priority);
474 rep->gbytes, (u_long)0, rep->bytes);
475 STAT_LONG("Request gap seconds", rep->request_gap.tv_sec);
477 rep->request_gap.tv_nsec / NS_PER_US);
478 STAT_LONG("Maximum gap seconds", rep->max_gap.tv_sec);
480 rep->max_gap.tv_nsec / NS_PER_US);
482 STAT_ULONG("Callers in rep_proc_msg", rep->msg_th);
483 STAT_ULONG("Library handle count", rep->handle_cnt);
484 STAT_ULONG("Multi-step operation count", rep->op_cnt);
489 STAT_LONG("Sites heard from", rep->sites);
490 STAT_LONG("Current winner", rep->winner);
491 STAT_LONG("Winner priority", rep->w_priority);
492 STAT_ULONG("Winner generation", rep->w_gen);
493 STAT_LSN("Winner LSN", &rep->w_lsn);
494 STAT_LONG("Winner tiebreaker", rep->w_tiebreaker);
495 STAT_LONG("Votes for this site", rep->votes);
497 __db_prflags(env, NULL, rep->flags, rep_fn, NULL, "\tFlags");
501 MUTEX_LOCK(env, rep->mtx_clientdb);
515 MUTEX_UNLOCK(env, rep->mtx_clientdb);