Definition at line 18 of file recovery_test.cc.
§ RecoveryTest()
| leveldb::RecoveryTest::RecoveryTest |
( |
| ) |
|
|
inline |
Definition at line 20 of file recovery_test.cc.
void Open(Options *options=NULL)
Status DestroyDB(const std::string &dbname, const Options &options)
§ ~RecoveryTest()
| leveldb::RecoveryTest::~RecoveryTest |
( |
| ) |
|
|
inline |
Definition at line 26 of file recovery_test.cc.
Status DestroyDB(const std::string &dbname, const Options &options)
§ CanAppend()
| bool leveldb::RecoveryTest::CanAppend |
( |
| ) |
|
|
inline |
Definition at line 34 of file recovery_test.cc.
38 if (s.IsNotSupportedError()) {
std::string CurrentFileName(const std::string &dbname)
virtual Status NewAppendableFile(const std::string &fname, WritableFile **result)
§ Close()
| void leveldb::RecoveryTest::Close |
( |
| ) |
|
|
inline |
§ CompactMemTable()
| void leveldb::RecoveryTest::CompactMemTable |
( |
| ) |
|
|
inline |
§ dbfull()
| DBImpl* leveldb::RecoveryTest::dbfull |
( |
| ) |
const |
|
inline |
§ DeleteLogFiles()
| size_t leveldb::RecoveryTest::DeleteLogFiles |
( |
| ) |
|
|
inline |
Definition at line 95 of file recovery_test.cc.
97 for (
size_t i = 0; i < logs.size(); i++) {
std::vector< uint64_t > GetFiles(FileType t)
std::string LogName(uint64_t number)
virtual Status DeleteFile(const std::string &fname)=0
§ env()
| Env* leveldb::RecoveryTest::env |
( |
| ) |
const |
|
inline |
§ FileSize()
| uint64_t leveldb::RecoveryTest::FileSize |
( |
const std::string & |
fname | ) |
|
|
inline |
Definition at line 129 of file recovery_test.cc.
virtual Status GetFileSize(const std::string &fname, uint64_t *file_size)=0
§ FirstLogFile()
| uint64_t leveldb::RecoveryTest::FirstLogFile |
( |
| ) |
|
|
inline |
§ Get()
| std::string leveldb::RecoveryTest::Get |
( |
const std::string & |
k, |
|
|
const Snapshot * |
snapshot = NULL |
|
) |
| |
|
inline |
Definition at line 70 of file recovery_test.cc.
72 Status s =
db_->
Get(ReadOptions(), k, &result);
std::string ToString() const
virtual Status Get(const ReadOptions &options, const Slice &key, std::string *value)=0
§ GetFiles()
| std::vector<uint64_t> leveldb::RecoveryTest::GetFiles |
( |
FileType |
t | ) |
|
|
inline |
Definition at line 107 of file recovery_test.cc.
108 std::vector<std::string> filenames;
110 std::vector<uint64_t> result;
111 for (
size_t i = 0; i < filenames.size(); i++) {
114 if (
ParseFileName(filenames[i], &number, &type) && type == t) {
115 result.push_back(number);
bool ParseFileName(const std::string &fname, uint64_t *number, FileType *type)
virtual Status GetChildren(const std::string &dir, std::vector< std::string > *result)=0
§ LogName()
| std::string leveldb::RecoveryTest::LogName |
( |
uint64_t |
number | ) |
|
|
inline |
Definition at line 91 of file recovery_test.cc.
std::string LogFileName(const std::string &name, uint64_t number)
§ MakeLogFile()
Definition at line 140 of file recovery_test.cc.
144 log::Writer writer(file);
static void SetSequence(WriteBatch *batch, SequenceNumber seq)
virtual Status NewWritableFile(const std::string &fname, WritableFile **result)=0
std::string LogFileName(const std::string &name, uint64_t number)
static Slice Contents(const WriteBatch *batch)
§ ManifestFileName()
| std::string leveldb::RecoveryTest::ManifestFileName |
( |
| ) |
|
|
inline |
Definition at line 81 of file recovery_test.cc.
84 size_t len = current.size();
85 if (len > 0 && current[len-1] ==
'\n') {
86 current.resize(len - 1);
std::string CurrentFileName(const std::string &dbname)
Status ReadFileToString(Env *env, const std::string &fname, std::string *data)
§ NumLogs()
| int leveldb::RecoveryTest::NumLogs |
( |
| ) |
|
|
inline |
§ NumTables()
| int leveldb::RecoveryTest::NumTables |
( |
| ) |
|
|
inline |
§ Open()
| void leveldb::RecoveryTest::Open |
( |
Options * |
options = NULL | ) |
|
|
inline |
Definition at line 50 of file recovery_test.cc.
53 if (options != NULL) {
56 opts.reuse_logs =
true;
57 opts.create_if_missing =
true;
59 if (opts.env == NULL) {
static Status Open(const Options &options, const std::string &name, DB **dbptr)
§ Put()
| Status leveldb::RecoveryTest::Put |
( |
const std::string & |
k, |
|
|
const std::string & |
v |
|
) |
| |
|
inline |
Definition at line 66 of file recovery_test.cc.
67 return db_->
Put(WriteOptions(), k, v);
virtual Status Put(const WriteOptions &options, const Slice &key, const Slice &value)=0
§ db_
| DB* leveldb::RecoveryTest::db_ |
|
private |
§ dbname_
| std::string leveldb::RecoveryTest::dbname_ |
|
private |
§ env_
| Env* leveldb::RecoveryTest::env_ |
|
private |
The documentation for this class was generated from the following file: