### DB_ENV->rep_set_request

`

###

    #include <db.h>

    int
    DB_ENV->rep_set_request(DB_ENV *env, u_int32_t min, u_int32_t max);

    int
    DB_ENV->rep_get_request(DB_ENV *env, u_int32_t *minp, u_int32_t *maxp);

### Description: DB_ENV->rep_set_request

The DB_ENV->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 DB_ENV->rep_set_request method configures a database environment, not only operations performed using the specified DB_ENV handle.

The DB_ENV->rep_set_request method may be called at any time during the life of the application.

The DB_ENV->rep_set_request method returns a non-zero error value on failure and 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 DB_ENV->rep_set_request method may fail and return one of the following non-zero errors:

EINVAL
  An invalid flag value or parameter was specified.

### Description: DB_ENV->rep_get_request

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

The DB_ENV->rep_get_request method may be called at any time during the life of the application.

The DB_ENV->rep_get_request method returns a non-zero error value on failure and 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

DB_ENV

### See Also

Replication and Related Methods`

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