### DbEnv::rep_set_request

`

###

    #include <db_cxx.h>

    int
    DbEnv::rep_set_request(u_int32_t min, u_int32_t max);

    int
    DbEnv::rep_get_request(u_int32_t *minp, u_int32_t *maxp);

### Description: DbEnv::rep_set_request

The DbEnv::rep_set_request method sets the minimum and maximum number of missing log records that a client waits before requesting retransmission. Specifically, if a log record is missing, Berkeley DB will wait for min more records to arrive before requesting retransmission of the missing record. Berkeley DB will wait double that amount before requesting the same missing record again, and so on, up to a maximum wait of max records.

By default the minimum is 4 and the maximum is 128, and applications rarely need to use values other than the defaults.

The DbEnv::rep_set_request method configures a database environment, not only operations performed using the specified DbEnv handle.

The DbEnv::rep_set_request method may be called at any time during the life of the application.

The DbEnv::rep_set_request method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

### Parameters

max
  The maximum number of missing log records a client waits before requesting retransmission.
min
  The minimum number of missing log records a client waits before requesting retransmission.

### Errors

The DbEnv::rep_set_request method may fail and throw DbException, encapsulating one of the following non-zero errors, or return one of the following non-zero errors:

EINVAL
  An invalid flag value or parameter was specified.

### Description: DbEnv::rep_get_request

The DbEnv::rep_get_request method returns the minimum and maximum number of missing log records a client waits before requesting retransmission.

The DbEnv::rep_get_request method may be called at any time during the life of the application.

The DbEnv::rep_get_request method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

### Parameters

maxp
  The maxp parameter references memory into which the maximum number of missing log records a client will wait before requesting retransmission is copied.
minp
  The minp parameter references memory into which the minimum number of missing log records a client will wait before requesting retransmission is copied.

### Class

DbEnv

### See Also

Replication and Related Methods`

Copyright (c) 1996,2007 Oracle. All rights reserved.