Library Version 11.2.5.3

DB->set_partition_dirs()
Prev | Chapter 2. The DB Handle | Next

## DB->set_partition_dirs()

    #include <db.h>

    int
    DB->set_partition_dirs(DB *db, const char **dirs);

Specify which directories the database extents should be created in or looked for. If the number of directories is less than the number of partitions, the directories will be used in a round robin fashion.

The `DB->set_partition_dirs()` method may not be called after the DB->open() method is called.

The `DB->set_partition_dirs()` method returns a non-zero error value on failure and 0 on success.

### Parameters

#### dirs

The dirs points to an array of directories that will be used to create or locate the database extent files specified in the DB->open() method call. The directories must be included in the environment list specified by DB_ENV->add_data_dir().

### Errors

The `DB->set_partition_dirs()` method may fail and return one of the following non-zero errors:

#### EINVAL

An invalid flag value or parameter was specified.

### Class

DB

### See Also

Database and Related Methods

Prev | Up | Next
DB->set_partition() | Home | DB->set_priority()