Berkeley DB: DbEnv.set_panicstate
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++

# DbEnv.set_panicstate |

`

###

    import com.sleepycat.db.*;

    static int
    DbEnv.set_panicstate(int panic);
    	throws DbException;

# Description

Toggle the Berkeley DB panic state. Setting panic to a true value causes Berkeley DB to refuse attempts to call Berkeley DB functions with the Db.DB_RUNRECOVERY error return.

The DbEnv.set_panicstate interface affects the entire application, not a single database or database environment.

While the DbEnv.set_panicstate interface may be used to configure Berkeley DB at any time during the life of the application, it should normally be called before making any calls to the db_env_create or db_create methods.

The DbEnv.set_panicstate method throws an exception that encapsulates a non-zero error value on failure.

# Errors

EINVAL
  An invalid flag value or parameter was specified.

### Class

DbEnv

# See Also

DbEnv.close, DbEnv.open, DbEnv.remove, DbEnv.strerror, DbEnv.get_version_string DbEnv.set_cachesize, DbEnv.set_errcall, DbEnv.set_error_stream, DbEnv.set_errpfx, DbEnv.set_flags, DbEnv.set_mutexlocks, and DbEnv.set_verbose.`

Copyright Sleepycat Software