| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 | <title>DbEnv::rep_stat()</title> |
| 7 | <link rel="stylesheet" href="apiReference.css" type="text/css" /> |
| 8 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 | <link rel="start" href="index.html" title="Berkeley DB C++ API Reference" /> |
| 10 | <link rel="up" href="rep.html" title="Chapter 11. Replication Methods" /> |
| 11 | <link rel="prev" href="repstart.html" title="DbEnv::rep_start()" /> |
| 12 | <link rel="next" href="repstat_print.html" title="DbEnv::rep_stat_print()" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">DbEnv::rep_stat()</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="repstart.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 11. |
| 26 | Replication Methods |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="repstat_print.html">Next</a></td> |
| 29 | </tr> |
| 30 | </table> |
| 31 | <hr /> |
| 32 | </div> |
| 33 | <div class="sect1" lang="en" xml:lang="en"> |
| 34 | <div class="titlepage"> |
| 35 | <div> |
| 36 | <div> |
| 37 | <h2 class="title" style="clear: both"><a id="repstat"></a>DbEnv::rep_stat()</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <pre class="programlisting">#include <db_cxx.h> |
| 42 | |
| 43 | int |
| 44 | DbEnv::rep_stat(DB_REP_STAT **statp, u_int32_t flags); </pre> |
| 45 | <p> |
| 46 | The <code class="methodname">DbEnv::rep_stat()</code> method returns the replication subsystem |
| 47 | statistics. |
| 48 | </p> |
| 49 | <p> |
| 50 | The <code class="methodname">DbEnv::rep_stat()</code> method creates a statistical structure of type |
| 51 | <code class="literal">DB_REP_STAT</code> and copies a pointer to it into a user-specified memory |
| 52 | location. |
| 53 | </p> |
| 54 | <p> |
| 55 | Statistical structures are stored in allocated memory. If application-specific allocation |
| 56 | routines have been declared (see <a class="xref" href="envset_alloc.html" title="DbEnv::set_alloc()">DbEnv::set_alloc()</a> |
| 57 | for more information), they are used to allocate the memory; otherwise, the standard |
| 58 | C library <span class="bold"><strong>malloc</strong></span>(3) is used. The caller is responsible |
| 59 | for deallocating the memory. To deallocate the memory, free the memory reference; |
| 60 | references inside the returned memory need not be individually freed. |
| 61 | </p> |
| 62 | <p> |
| 63 | The following <code class="literal">DB_REP_STAT</code> fields will be filled in: |
| 64 | </p> |
| 65 | <div class="itemizedlist"> |
| 66 | <ul type="disc"> |
| 67 | <li> |
| 68 | <p> |
| 69 | <span class="bold"><strong>uintmax_t st_bulk_fills;</strong></span> |
| 70 | </p> |
| 71 | <p> |
| 72 | The number of times the bulk buffer filled up, forcing the buffer |
| 73 | content to be sent. |
| 74 | </p> |
| 75 | </li> |
| 76 | <li> |
| 77 | <p> |
| 78 | <span class="bold"><strong>uintmax_t st_bulk_overflows;</strong></span> |
| 79 | </p> |
| 80 | <p> |
| 81 | The number of times a record was bigger than the entire bulk buffer, |
| 82 | and therefore had to be sent as a singleton. |
| 83 | </p> |
| 84 | </li> |
| 85 | <li> |
| 86 | <p> |
| 87 | <span class="bold"><strong>uintmax_t st_bulk_records;</strong></span> |
| 88 | </p> |
| 89 | <p> |
| 90 | The number of records added to a bulk buffer. |
| 91 | </p> |
| 92 | </li> |
| 93 | <li> |
| 94 | <p> |
| 95 | <span class="bold"><strong>uintmax_t st_bulk_transfers;</strong></span> |
| 96 | </p> |
| 97 | <p> |
| 98 | The number of bulk buffers transferred (via a call to the |
| 99 | application's <span class="bold"><strong>send</strong></span> function). |
| 100 | </p> |
| 101 | </li> |
| 102 | <li> |
| 103 | <p> |
| 104 | <span class="bold"><strong>uintmax_t st_client_rerequests;</strong></span> |
| 105 | </p> |
| 106 | <p> |
| 107 | The number of times this client site received a "re-request" message, |
| 108 | indicating that a request it previously sent to another client could |
| 109 | not be serviced by that client. (Compare to <span class="bold"><strong>st_client_svc_miss</strong></span>.) |
| 110 | </p> |
| 111 | </li> |
| 112 | <li> |
| 113 | <p> |
| 114 | <span class="bold"><strong>uintmax_t st_client_svc_miss;</strong></span> |
| 115 | </p> |
| 116 | <p> |
| 117 | The number of "request" type messages received by this client that |
| 118 | could not be processed, forcing the originating requester to try |
| 119 | sending the request to the master (or another client). |
| 120 | </p> |
| 121 | </li> |
| 122 | <li> |
| 123 | <p> |
| 124 | <span class="bold"><strong>uintmax_t st_client_svc_req;</strong></span> |
| 125 | </p> |
| 126 | <p> |
| 127 | The number of "request" type messages received by this client. |
| 128 | ("Request" messages are usually sent from a client to the master, but |
| 129 | a message marked with the |
| 130 | <a class="link" href="reptransport.html#transport_DB_REP_ANYWHERE">DB_REP_ANYWHERE</a> |
| 131 | flag in the invocation of the application's <span class="bold"><strong>send</strong></span> function may be sent to another client |
| 132 | instead.) |
| 133 | </p> |
| 134 | </li> |
| 135 | <li> |
| 136 | <p> |
| 137 | <span class="bold"><strong>u_int32_t st_dupmasters;</strong></span> |
| 138 | </p> |
| 139 | <p> |
| 140 | The number of duplicate master conditions originally detected at this |
| 141 | site. |
| 142 | </p> |
| 143 | </li> |
| 144 | <li> |
| 145 | <p> |
| 146 | <span class="bold"><strong>u_int32_t st_egen;</strong></span> |
| 147 | </p> |
| 148 | <p> |
| 149 | The election generation number for the current or next election. |
| 150 | </p> |
| 151 | </li> |
| 152 | <li> |
| 153 | <p> |
| 154 | <span class="bold"><strong>int st_election_cur_winner;</strong></span> |
| 155 | </p> |
| 156 | <p> |
| 157 | The environment ID of the winner of the current or last election. |
| 158 | </p> |
| 159 | </li> |
| 160 | <li> |
| 161 | <p> |
| 162 | <span class="bold"><strong>u_int32_t st_election_datagen;</strong></span> |
| 163 | </p> |
| 164 | <p> |
| 165 | The master data generation number of the winner of the |
| 166 | current or last election. |
| 167 | </p> |
| 168 | </li> |
| 169 | <li> |
| 170 | <p> |
| 171 | <span class="bold"><strong>u_int32_t st_election_gen;</strong></span> |
| 172 | </p> |
| 173 | <p> |
| 174 | The master generation number of the winner of the current or last election. |
| 175 | </p> |
| 176 | </li> |
| 177 | <li> |
| 178 | <p> |
| 179 | <span class="bold"><strong>DB_LSN st_election_lsn;</strong></span> |
| 180 | </p> |
| 181 | <p> |
| 182 | The maximum LSN of the winner of the current or last election. |
| 183 | </p> |
| 184 | </li> |
| 185 | <li> |
| 186 | <p> |
| 187 | <span class="bold"><strong>u_int32_t st_election_nsites;</strong></span> |
| 188 | </p> |
| 189 | <p> |
| 190 | The number of sites responding to this site during the current election. |
| 191 | </p> |
| 192 | </li> |
| 193 | <li> |
| 194 | <p> |
| 195 | <span class="bold"><strong>u_int32_t st_election_nvotes;</strong></span> |
| 196 | </p> |
| 197 | <p> |
| 198 | The number of votes required in the current or last election. |
| 199 | </p> |
| 200 | </li> |
| 201 | <li> |
| 202 | <p> |
| 203 | <span class="bold"><strong>u_int32_t st_election_priority;</strong></span> |
| 204 | </p> |
| 205 | <p> |
| 206 | The priority of the winner of the current or last election. |
| 207 | </p> |
| 208 | </li> |
| 209 | <li> |
| 210 | <p> |
| 211 | <span class="bold"><strong>u_int32_t st_election_sec;</strong></span> |
| 212 | </p> |
| 213 | <p> |
| 214 | The number of seconds the last election took (the total election time |
| 215 | is <span class="bold"><strong>st_election_sec</strong></span> plus <span class="bold"><strong>st_election_usec</strong></span>). |
| 216 | </p> |
| 217 | </li> |
| 218 | <li> |
| 219 | <p> |
| 220 | <span class="bold"><strong>int st_election_status;</strong></span> |
| 221 | </p> |
| 222 | <p> |
| 223 | The current election phase (0 if no election is in progress). |
| 224 | </p> |
| 225 | </li> |
| 226 | <li> |
| 227 | <p> |
| 228 | <span class="bold"><strong>u_int32_t st_election_tiebreaker;</strong></span> |
| 229 | </p> |
| 230 | <p> |
| 231 | The tiebreaker value of the winner of the current or last election. |
| 232 | </p> |
| 233 | </li> |
| 234 | <li> |
| 235 | <p> |
| 236 | <span class="bold"><strong>u_int32_t st_election_usec;</strong></span> |
| 237 | </p> |
| 238 | <p> |
| 239 | The number of microseconds the last election took (the total election |
| 240 | time is <span class="bold"><strong>st_election_sec</strong></span> plus |
| 241 | <span class="bold"><strong>st_election_usec</strong></span>). |
| 242 | </p> |
| 243 | </li> |
| 244 | <li> |
| 245 | <p> |
| 246 | <span class="bold"><strong>u_int32_t st_election_votes;</strong></span> |
| 247 | </p> |
| 248 | <p> |
| 249 | The number of votes received during the current election. |
| 250 | </p> |
| 251 | </li> |
| 252 | <li> |
| 253 | <p> |
| 254 | <span class="bold"><strong>uintmax_t st_elections;</strong></span> |
| 255 | </p> |
| 256 | <p> |
| 257 | The number of elections held. |
| 258 | </p> |
| 259 | </li> |
| 260 | <li> |
| 261 | <p> |
| 262 | <span class="bold"><strong>uintmax_t st_elections_won;</strong></span> |
| 263 | </p> |
| 264 | <p> |
| 265 | The number of elections won. |
| 266 | </p> |
| 267 | </li> |
| 268 | <li> |
| 269 | <p> |
| 270 | <span class="bold"><strong>int st_env_id;</strong></span> |
| 271 | </p> |
| 272 | <p> |
| 273 | The current environment ID. |
| 274 | </p> |
| 275 | </li> |
| 276 | <li> |
| 277 | <p> |
| 278 | <span class="bold"><strong>u_int32_t st_env_priority;</strong></span> |
| 279 | </p> |
| 280 | <p> |
| 281 | The current environment priority. |
| 282 | </p> |
| 283 | </li> |
| 284 | <li> |
| 285 | <p> |
| 286 | <span class="bold"><strong>u_int32_t st_gen;</strong></span> |
| 287 | </p> |
| 288 | <p> |
| 289 | The current master generation number. |
| 290 | </p> |
| 291 | </li> |
| 292 | <li> |
| 293 | <p> |
| 294 | <span class="bold"><strong>uintmax_t st_lease_chk;</strong></span> |
| 295 | </p> |
| 296 | <p> |
| 297 | The number of lease validity checks. |
| 298 | </p> |
| 299 | </li> |
| 300 | <li> |
| 301 | <p> |
| 302 | <span class="bold"><strong>uintmax_t st_lease_chk_misses;</strong></span> |
| 303 | </p> |
| 304 | <p> |
| 305 | The number of invalid lease validity checks. |
| 306 | </p> |
| 307 | </li> |
| 308 | <li> |
| 309 | <p> |
| 310 | <span class="bold"><strong>uintmax_t st_lease_chk_refresh;</strong></span> |
| 311 | </p> |
| 312 | <p> |
| 313 | The number of lease refresh attempts during lease |
| 314 | validity checks. |
| 315 | </p> |
| 316 | </li> |
| 317 | <li> |
| 318 | <p> |
| 319 | <span class="bold"><strong>uintmax_t st_lease_sends;</strong></span> |
| 320 | </p> |
| 321 | <p> |
| 322 | The number of live messages sent while using leases. |
| 323 | </p> |
| 324 | </li> |
| 325 | <li> |
| 326 | <p> |
| 327 | <span class="bold"><strong>uintmax_t st_log_duplicated;</strong></span> |
| 328 | </p> |
| 329 | <p> |
| 330 | The number of duplicate log records received. |
| 331 | </p> |
| 332 | </li> |
| 333 | <li> |
| 334 | <p> |
| 335 | <span class="bold"><strong>uintmax_t st_log_queued;</strong></span> |
| 336 | </p> |
| 337 | <p> |
| 338 | The number of log records currently queued. |
| 339 | </p> |
| 340 | </li> |
| 341 | <li> |
| 342 | <p> |
| 343 | <span class="bold"><strong>uintmax_t st_log_queued_max;</strong></span> |
| 344 | </p> |
| 345 | <p> |
| 346 | The maximum number of log records ever queued at once. |
| 347 | </p> |
| 348 | </li> |
| 349 | <li> |
| 350 | <p> |
| 351 | <span class="bold"><strong>uintmax_t st_log_queued_total;</strong></span> |
| 352 | </p> |
| 353 | <p> |
| 354 | The total number of log records queued. |
| 355 | </p> |
| 356 | </li> |
| 357 | <li> |
| 358 | <p> |
| 359 | <span class="bold"><strong>uintmax_t st_log_records;</strong></span> |
| 360 | </p> |
| 361 | <p> |
| 362 | The number of log records received and appended to the log. |
| 363 | </p> |
| 364 | </li> |
| 365 | <li> |
| 366 | <p> |
| 367 | <span class="bold"><strong>uintmax_t st_log_requested;</strong></span> |
| 368 | </p> |
| 369 | <p> |
| 370 | The number of times log records were missed and requested. |
| 371 | </p> |
| 372 | </li> |
| 373 | <li> |
| 374 | <p> |
| 375 | <span class="bold"><strong>int st_master;</strong></span> |
| 376 | </p> |
| 377 | <p> |
| 378 | The current master environment ID. |
| 379 | </p> |
| 380 | </li> |
| 381 | <li> |
| 382 | <p> |
| 383 | <span class="bold"><strong>uintmax_t st_master_changes;</strong></span> |
| 384 | </p> |
| 385 | <p> |
| 386 | The number of times the master has changed. |
| 387 | </p> |
| 388 | </li> |
| 389 | <li> |
| 390 | <p> |
| 391 | <span class="bold"><strong>u_int32_t st_max_lease_sec;</strong></span> |
| 392 | </p> |
| 393 | <p> |
| 394 | The number of seconds of the longest lease (the total lease time is |
| 395 | <span class="bold"><strong>st_max_lease_sec</strong></span> plus <span class="bold"><strong>st_max_lease_usec</strong></span>). |
| 396 | </p> |
| 397 | </li> |
| 398 | <li> |
| 399 | <p> |
| 400 | <span class="bold"><strong>u_int32_t st_max_lease_usec;</strong></span> |
| 401 | </p> |
| 402 | <p> |
| 403 | The number of microseconds of the longest lease (the total lease time |
| 404 | is <span class="bold"><strong>st_max_lease_sec</strong></span> plus <span class="bold"><strong>st_max_lease_usec</strong></span>). |
| 405 | </p> |
| 406 | </li> |
| 407 | <li> |
| 408 | <p> |
| 409 | <span class="bold"><strong>DB_LSN st_max_perm_lsn;</strong></span> |
| 410 | </p> |
| 411 | <p> |
| 412 | The LSN of the maximum permanent log record, or 0 if there are no |
| 413 | permanent log records. |
| 414 | </p> |
| 415 | </li> |
| 416 | <li> |
| 417 | <p> |
| 418 | <span class="bold"><strong>uintmax_t st_msgs_badgen;</strong></span> |
| 419 | </p> |
| 420 | <p> |
| 421 | The number of messages received with a bad generation number. |
| 422 | </p> |
| 423 | </li> |
| 424 | <li> |
| 425 | <p> |
| 426 | <span class="bold"><strong>uintmax_t st_msgs_processed;</strong></span> |
| 427 | </p> |
| 428 | <p> |
| 429 | The number of messages received and processed. |
| 430 | </p> |
| 431 | </li> |
| 432 | <li> |
| 433 | <p> |
| 434 | <span class="bold"><strong>uintmax_t st_msgs_recover;</strong></span> |
| 435 | </p> |
| 436 | <p> |
| 437 | The number of messages ignored due to pending recovery. |
| 438 | </p> |
| 439 | </li> |
| 440 | <li> |
| 441 | <p> |
| 442 | <span class="bold"><strong>uintmax_t st_msgs_send_failures;</strong></span> |
| 443 | </p> |
| 444 | <p> |
| 445 | The number of failed message sends. |
| 446 | </p> |
| 447 | </li> |
| 448 | <li> |
| 449 | <p> |
| 450 | <span class="bold"><strong>uintmax_t st_msgs_sent;</strong></span> |
| 451 | </p> |
| 452 | <p> |
| 453 | The number of messages sent. |
| 454 | </p> |
| 455 | </li> |
| 456 | <li> |
| 457 | <p> |
| 458 | <span class="bold"><strong>uintmax_t st_newsites;</strong></span> |
| 459 | </p> |
| 460 | <p> |
| 461 | The number of new site messages received. |
| 462 | </p> |
| 463 | </li> |
| 464 | <li> |
| 465 | <p> |
| 466 | <span class="bold"><strong>DB_LSN st_next_lsn;</strong></span> |
| 467 | </p> |
| 468 | <p> |
| 469 | In replication environments configured as masters, the next LSN |
| 470 | to be used. In replication environments configured as clients, the next |
| 471 | LSN expected. |
| 472 | </p> |
| 473 | </li> |
| 474 | <li> |
| 475 | <p> |
| 476 | <span class="bold"><strong>u_int32_t st_next_pg;</strong></span> |
| 477 | </p> |
| 478 | <p> |
| 479 | The next page number we expect to receive. |
| 480 | </p> |
| 481 | </li> |
| 482 | <li> |
| 483 | <p> |
| 484 | <span class="bold"><strong>u_int32_t st_nsites;</strong></span> |
| 485 | </p> |
| 486 | <p> |
| 487 | The number of sites used in the last election. |
| 488 | </p> |
| 489 | </li> |
| 490 | <li> |
| 491 | <p> |
| 492 | <span class="bold"><strong>uintmax_t st_nthrottles;</strong></span> |
| 493 | </p> |
| 494 | <p> |
| 495 | Transmission limited. This indicates the number of times that data |
| 496 | transmission was stopped to limit the amount of data sent in response |
| 497 | to a single call to <a class="xref" href="repmessage.html" title="DbEnv::rep_process_message()">DbEnv::rep_process_message()</a>. |
| 498 | </p> |
| 499 | </li> |
| 500 | <li> |
| 501 | <p> |
| 502 | <span class="bold"><strong>uintmax_t st_outdated;</strong></span> |
| 503 | </p> |
| 504 | <p> |
| 505 | The number of outdated conditions detected. |
| 506 | </p> |
| 507 | </li> |
| 508 | <li> |
| 509 | <p> |
| 510 | <span class="bold"><strong>uintmax_t st_pg_duplicated;</strong></span> |
| 511 | </p> |
| 512 | <p> |
| 513 | The number of duplicate pages received. |
| 514 | </p> |
| 515 | </li> |
| 516 | <li> |
| 517 | <p> |
| 518 | <span class="bold"><strong>uintmax_t st_pg_records;</strong></span> |
| 519 | </p> |
| 520 | <p> |
| 521 | The number of pages received and stored. |
| 522 | </p> |
| 523 | </li> |
| 524 | <li> |
| 525 | <p> |
| 526 | <span class="bold"><strong>uintmax_t st_pg_requested;</strong></span> |
| 527 | </p> |
| 528 | <p> |
| 529 | The number of pages missed and requested from the master. |
| 530 | </p> |
| 531 | </li> |
| 532 | <li> |
| 533 | <p> |
| 534 | <span class="bold"><strong>uintmax_t st_startsync_delayed;</strong></span> |
| 535 | </p> |
| 536 | <p> |
| 537 | The number of times the client had to delay the start of a cache flush |
| 538 | operation (initiated by the master for an impending checkpoint) |
| 539 | because it was missing some previous log record(s). |
| 540 | </p> |
| 541 | </li> |
| 542 | <li> |
| 543 | <p> |
| 544 | <span class="bold"><strong>u_int32_t st_startup_complete;</strong></span> |
| 545 | </p> |
| 546 | <p> |
| 547 | The client site has completed its startup procedures and is now |
| 548 | handling live records from the master. |
| 549 | </p> |
| 550 | </li> |
| 551 | <li> |
| 552 | <p> |
| 553 | <span class="bold"><strong>u_int32_t st_status;</strong></span> |
| 554 | </p> |
| 555 | <p> |
| 556 | The current replication mode. Set to |
| 557 | <a class="link" href="repmgrstart.html#repmgrstart_DB_REP_MASTER">DB_REP_MASTER</a> |
| 558 | if the environment is a replication master, |
| 559 | <a class="link" href="repmgrstart.html#repmgrstart_DB_REP_CLIENT">DB_REP_CLIENT</a> |
| 560 | if the environment is a replication client, or 0 if replication is not |
| 561 | configured. |
| 562 | </p> |
| 563 | </li> |
| 564 | <li> |
| 565 | <p> |
| 566 | <span class="bold"><strong>uintmax_t st_txns_applied;</strong></span> |
| 567 | </p> |
| 568 | <p> |
| 569 | The number of transactions applied. |
| 570 | </p> |
| 571 | </li> |
| 572 | <li> |
| 573 | <p> |
| 574 | <span class="bold"><strong>DB_LSN st_waiting_lsn;</strong></span> |
| 575 | </p> |
| 576 | <p> |
| 577 | The LSN of the first log record we have after missing log records |
| 578 | being waited for, or 0 if no log records are currently missing. |
| 579 | </p> |
| 580 | </li> |
| 581 | <li> |
| 582 | <p> |
| 583 | <span class="bold"><strong>u_int32_t st_waiting_pg;</strong></span> |
| 584 | </p> |
| 585 | <p> |
| 586 | The page number of the first page we have after missing pages being |
| 587 | waited for, or 0 if no pages are currently missing. |
| 588 | </p> |
| 589 | </li> |
| 590 | </ul> |
| 591 | </div> |
| 592 | <p> |
| 593 | The <code class="methodname">DbEnv::rep_stat()</code> method may not be called before the |
| 594 | <a class="xref" href="envopen.html" title="DbEnv::open()">DbEnv::open()</a> method is called. |
| 595 | </p> |
| 596 | <p> |
| 597 | The <code class="methodname">DbEnv::rep_stat()</code> <span> |
| 598 | |
| 599 | <span> |
| 600 | method either returns a non-zero error value or throws an |
| 601 | exception that encapsulates a non-zero error value on |
| 602 | failure, and returns 0 on success. |
| 603 | </span> |
| 604 | </span> |
| 605 | </p> |
| 606 | <div class="sect2" lang="en" xml:lang="en"> |
| 607 | <div class="titlepage"> |
| 608 | <div> |
| 609 | <div> |
| 610 | <h3 class="title"><a id="idp9801736"></a>Parameters</h3> |
| 611 | </div> |
| 612 | </div> |
| 613 | </div> |
| 614 | <div class="sect3" lang="en" xml:lang="en"> |
| 615 | <div class="titlepage"> |
| 616 | <div> |
| 617 | <div> |
| 618 | <h4 class="title"><a id="idp9770864"></a>statp</h4> |
| 619 | </div> |
| 620 | </div> |
| 621 | </div> |
| 622 | <p> |
| 623 | The <span class="bold"><strong>statp</strong></span> parameter references memory |
| 624 | into which a pointer to the allocated statistics structure is copied. |
| 625 | </p> |
| 626 | </div> |
| 627 | <div class="sect3" lang="en" xml:lang="en"> |
| 628 | <div class="titlepage"> |
| 629 | <div> |
| 630 | <div> |
| 631 | <h4 class="title"><a id="idp9805048"></a>flags</h4> |
| 632 | </div> |
| 633 | </div> |
| 634 | </div> |
| 635 | <p> |
| 636 | The <span class="bold"><strong>flags</strong></span> parameter must be set to 0 |
| 637 | or the following value: |
| 638 | </p> |
| 639 | <div class="itemizedlist"> |
| 640 | <ul type="disc"> |
| 641 | <li> |
| 642 | <p> |
| 643 | <code class="literal">DB_STAT_CLEAR</code> |
| 644 | </p> |
| 645 | <p> |
| 646 | Reset statistics after returning their values. |
| 647 | </p> |
| 648 | </li> |
| 649 | </ul> |
| 650 | </div> |
| 651 | </div> |
| 652 | </div> |
| 653 | <div class="sect2" lang="en" xml:lang="en"> |
| 654 | <div class="titlepage"> |
| 655 | <div> |
| 656 | <div> |
| 657 | <h3 class="title"><a id="idp9810800"></a>Errors</h3> |
| 658 | </div> |
| 659 | </div> |
| 660 | </div> |
| 661 | <p> |
| 662 | The <code class="methodname">DbEnv::rep_stat()</code> <span> |
| 663 | |
| 664 | <span> |
| 665 | method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a> |
| 666 | exception, encapsulating one of the following non-zero errors, or return one |
| 667 | of the following non-zero errors: |
| 668 | </span> |
| 669 | </span> |
| 670 | </p> |
| 671 | <div class="sect3" lang="en" xml:lang="en"> |
| 672 | <div class="titlepage"> |
| 673 | <div> |
| 674 | <div> |
| 675 | <h4 class="title"><a id="idp9818328"></a>EINVAL</h4> |
| 676 | </div> |
| 677 | </div> |
| 678 | </div> |
| 679 | <p> |
| 680 | If the database environment was not already opened; or if an invalid |
| 681 | flag value or parameter was specified. |
| 682 | </p> |
| 683 | </div> |
| 684 | </div> |
| 685 | <div class="sect2" lang="en" xml:lang="en"> |
| 686 | <div class="titlepage"> |
| 687 | <div> |
| 688 | <div> |
| 689 | <h3 class="title"><a id="idp9817248"></a>Class</h3> |
| 690 | </div> |
| 691 | </div> |
| 692 | </div> |
| 693 | <p> |
| 694 | <a class="link" href="env.html" title="Chapter 5. The DbEnv Handle">DbEnv</a> |
| 695 | </p> |
| 696 | </div> |
| 697 | <div class="sect2" lang="en" xml:lang="en"> |
| 698 | <div class="titlepage"> |
| 699 | <div> |
| 700 | <div> |
| 701 | <h3 class="title"><a id="idp9813880"></a>See Also</h3> |
| 702 | </div> |
| 703 | </div> |
| 704 | </div> |
| 705 | <p> |
| 706 | <a class="xref" href="rep.html#replist" title="Replication and Related Methods">Replication and Related Methods</a> |
| 707 | </p> |
| 708 | </div> |
| 709 | </div> |
| 710 | <div class="navfooter"> |
| 711 | <hr /> |
| 712 | <table width="100%" summary="Navigation footer"> |
| 713 | <tr> |
| 714 | <td width="40%" align="left"><a accesskey="p" href="repstart.html">Prev</a> </td> |
| 715 | <td width="20%" align="center"> |
| 716 | <a accesskey="u" href="rep.html">Up</a> |
| 717 | </td> |
| 718 | <td width="40%" align="right"> <a accesskey="n" href="repstat_print.html">Next</a></td> |
| 719 | </tr> |
| 720 | <tr> |
| 721 | <td width="40%" align="left" valign="top">DbEnv::rep_start() </td> |
| 722 | <td width="20%" align="center"> |
| 723 | <a accesskey="h" href="index.html">Home</a> |
| 724 | </td> |
| 725 | <td width="40%" align="right" valign="top"> DbEnv::rep_stat_print()</td> |
| 726 | </tr> |
| 727 | </table> |
| 728 | </div> |
| 729 | </body> |
| 730 | </html> |