#include "db/filename.h"
#include <cassert>
#include <cstdio>
#include "db/dbformat.h"
#include "leveldb/env.h"
#include "util/logging.h"
namespace leveldb {
Status WriteStringToFileSync(Env* env, const Slice& data,
const std::string& fname);
static std::string MakeFileName(const std::string& dbname, uint64_t number,
const char* suffix) { … }
std::string LogFileName(const std::string& dbname, uint64_t number) { … }
std::string TableFileName(const std::string& dbname, uint64_t number) { … }
std::string SSTTableFileName(const std::string& dbname, uint64_t number) { … }
std::string DescriptorFileName(const std::string& dbname, uint64_t number) { … }
std::string CurrentFileName(const std::string& dbname) { … }
std::string LockFileName(const std::string& dbname) { … }
std::string TempFileName(const std::string& dbname, uint64_t number) { … }
std::string InfoLogFileName(const std::string& dbname) { … }
std::string OldInfoLogFileName(const std::string& dbname) { … }
bool ParseFileName(const std::string& filename, uint64_t* number,
FileType* type) { … }
Status SetCurrentFile(Env* env, const std::string& dbname,
uint64_t descriptor_number) { … }
}