Bitcoin
Public Member Functions | Public Attributes | List of all members
leveldb::CorruptionTest Class Reference

Public Member Functions

 CorruptionTest ()
 
 ~CorruptionTest ()
 
Status TryReopen ()
 
void Reopen ()
 
void RepairDB ()
 
void Build (int n)
 
void Check (int min_expected, int max_expected)
 
void Corrupt (FileType filetype, int offset, int bytes_to_corrupt)
 
int Property (const std::string &name)
 
Slice Key (int i, std::string *storage)
 
Slice Value (int k, std::string *storage)
 

Public Attributes

test::ErrorEnv env_
 
std::string dbname_
 
Cachetiny_cache_
 
Options options_
 
DBdb_
 

Constructor & Destructor Documentation

◆ CorruptionTest()

leveldb::CorruptionTest::CorruptionTest ( )
inline

◆ ~CorruptionTest()

leveldb::CorruptionTest::~CorruptionTest ( )
inline

Member Function Documentation

◆ Build()

void leveldb::CorruptionTest::Build ( int  n)
inline

◆ Check()

void leveldb::CorruptionTest::Check ( int  min_expected,
int  max_expected 
)
inline

◆ Corrupt()

void leveldb::CorruptionTest::Corrupt ( FileType  filetype,
int  offset,
int  bytes_to_corrupt 
)
inline

◆ Key()

Slice leveldb::CorruptionTest::Key ( int  i,
std::string *  storage 
)
inline

◆ Property()

int leveldb::CorruptionTest::Property ( const std::string &  name)
inline

◆ Reopen()

void leveldb::CorruptionTest::Reopen ( )
inline

◆ RepairDB()

void leveldb::CorruptionTest::RepairDB ( )
inline

◆ TryReopen()

Status leveldb::CorruptionTest::TryReopen ( )
inline

◆ Value()

Slice leveldb::CorruptionTest::Value ( int  k,
std::string *  storage 
)
inline

Member Data Documentation

◆ db_

DB* leveldb::CorruptionTest::db_

◆ dbname_

std::string leveldb::CorruptionTest::dbname_

◆ env_

test::ErrorEnv leveldb::CorruptionTest::env_

◆ options_

Options leveldb::CorruptionTest::options_

◆ tiny_cache_

Cache* leveldb::CorruptionTest::tiny_cache_

The documentation for this class was generated from the following file: