Library Version 18.1.40

DB_MPOOLFILE->get_priority()
Prev | Chapter 8. The DB_MPOOLFILE Handle | Next

## DB_MPOOLFILE->get_priority()

    #include <db.h>

    int
    DB_MPOOLFILE->get_priority(DB_MPOOLFILE *mpf,
                               DB_CACHE_PRIORITY *priorityp);

The `DB_MPOOLFILE->get_priority()` method returns the cache priority for the file referenced by the DB_MPOOLFILE handle. The priority of a page biases the replacement algorithm to be more or less likely to discard a page when space is needed in the cache. This value is set using the DB_MPOOLFILE->set_priority() method.

The `DB_MPOOLFILE->get_priority()` method may be called at any time during the life of the application.

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

### Parameters

#### priorityp

The `DB_MPOOLFILE->get_priority()` method returns a reference to the cache priority for the file referenced by the DB_MPOOLFILE handle in priorityp.

### Class

DB_ENV, DB_MPOOLFILE

### See Also

Memory Pools and Related Methods, DB_MPOOLFILE->set_priority()

Prev | Up | Next
DB_MPOOLFILE->get_pgcookie() | Home | DB_ENV->get_region_dir()