DB->get_partition_callback()

#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 database partitioning callback 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.

Parameters

partsp

The partsp parameter returns the number of partitions used by the database.

callback_fcn

The callback_fcn parameter returns the partitioning callback.

Class

DB

See Also

Database and Related Methods, DB->set_partition()