#include <db.h> int DB->get_partition_callback(DB *db, u_int32_t *partsp, u_int32_t (**callback_fcn) (DB *dbp, DBT *key);
The DB->get_partition_callback()
method returns the partitioning information as
set by the DB->set_partition() method.
The DB->get_partition_callback()
method may be called at any time during the life
of the application.
The DB->get_partition_callback()
method returns a non-zero error value on failure and 0 on success.
The
DB->get_partition_callback()
method returns number of partitions in the
partsp
parameter.