#include <db_cxx.h> int DbEnv::get_lk_partitions(u_int32_t *lk_partitions);
         The DbEnv::get_lk_partitions() method returns the number of
         lock table partitions used in the Berkeley DB environment. You can configure this using the
         DbEnv::set_lk_partitions()
         method.
    
         The DbEnv::get_lk_partitions() method may be called at any time
         during the life of the application.
    
         The DbEnv::get_lk_partitions() 
            
            
                method either returns a non-zero error value or throws an
                exception that encapsulates a non-zero error value on
                failure, and returns 0 on success.
            
        
    
                         The DbEnv::get_lk_partitions() 
            
            
                method may fail and throw a DbException 
                exception, encapsulating one of the following non-zero errors, or return one
                of the following non-zero errors: