Home
last modified time | relevance | path

Searched refs:dbname (Results 1 – 14 of 14) sorted by relevance

/leveldb-1.20/db/
H A Dfilename.cc47 return dbname + buf; in DescriptorFileName()
50 std::string CurrentFileName(const std::string& dbname) { in CurrentFileName() argument
51 return dbname + "/CURRENT"; in CurrentFileName()
54 std::string LockFileName(const std::string& dbname) { in LockFileName() argument
55 return dbname + "/LOCK"; in LockFileName()
60 return MakeFileName(dbname, number, "dbtmp"); in TempFileName()
64 return dbname + "/LOG"; in InfoLogFileName()
69 return dbname + "/LOG.old"; in OldInfoLogFileName()
131 assert(contents.starts_with(dbname + "/")); in SetCurrentFile()
132 contents.remove_prefix(dbname.size() + 1); in SetCurrentFile()
[all …]
H A Dfilename.h33 extern std::string LogFileName(const std::string& dbname, uint64_t number);
38 extern std::string TableFileName(const std::string& dbname, uint64_t number);
43 extern std::string SSTTableFileName(const std::string& dbname, uint64_t number);
48 extern std::string DescriptorFileName(const std::string& dbname,
54 extern std::string CurrentFileName(const std::string& dbname);
58 extern std::string LockFileName(const std::string& dbname);
62 extern std::string TempFileName(const std::string& dbname, uint64_t number);
65 extern std::string InfoLogFileName(const std::string& dbname);
68 extern std::string OldInfoLogFileName(const std::string& dbname);
79 extern Status SetCurrentFile(Env* env, const std::string& dbname,
H A Dc_test.c15 static char dbname[200]; variable
171 snprintf(dbname, sizeof(dbname), in main()
202 leveldb_destroy_db(options, dbname, &err); in main()
206 db = leveldb_open(options, dbname, &err); in main()
211 db = leveldb_open(options, dbname, &err); in main()
218 db = leveldb_open(options, dbname, &err); in main()
327 leveldb_repair_db(options, dbname, &err); in main()
329 db = leveldb_open(options, dbname, &err); in main()
352 leveldb_destroy_db(options, dbname, &err); in main()
354 db = leveldb_open(options, dbname, &err); in main()
H A Dbuilder.cc17 Status BuildTable(const std::string& dbname, in BuildTable() argument
27 std::string fname = TableFileName(dbname, meta->number); in BuildTable()
H A Dbuilder.h25 extern Status BuildTable(const std::string& dbname,
H A Dtable_cache.h23 TableCache(const std::string& dbname, const Options* options, int entries);
H A Drepair.cc47 Repairer(const std::string& dbname, const Options& options) in Repairer() argument
48 : dbname_(dbname), in Repairer()
52 options_(SanitizeOptions(dbname, &icmp_, &ipolicy_, options)), in Repairer()
456 Status RepairDB(const std::string& dbname, const Options& options) { in RepairDB() argument
457 Repairer repairer(dbname, options); in RepairDB()
H A Dtable_cache.cc32 TableCache::TableCache(const std::string& dbname, in TableCache() argument
36 dbname_(dbname), in TableCache()
H A Ddb_impl.cc90 Options SanitizeOptions(const std::string& dbname, in SanitizeOptions() argument
103 src.env->CreateDir(dbname); // In case it does not exist in SanitizeOptions()
104 src.env->RenameFile(InfoLogFileName(dbname), OldInfoLogFileName(dbname)); in SanitizeOptions()
117 DBImpl::DBImpl(const Options& raw_options, const std::string& dbname) in DBImpl() argument
121 options_(SanitizeOptions(dbname, &internal_comparator_, in DBImpl()
125 dbname_(dbname), in DBImpl()
1490 Status DB::Open(const Options& options, const std::string& dbname, in Open() argument
1494 DBImpl* impl = new DBImpl(options, dbname); in Open()
1541 env->GetChildren(dbname, &filenames); in DestroyDB()
1547 const std::string lockname = LockFileName(dbname); in DestroyDB()
[all …]
H A Ddb_test.cc1510 std::string dbname = test::TmpDir() + "/db_options_test"; in TEST() local
1511 DestroyDB(dbname, Options()); in TEST()
1517 Status s = DB::Open(opts, dbname, &db); in TEST()
1523 s = DB::Open(opts, dbname, &db); in TEST()
1533 s = DB::Open(opts, dbname, &db); in TEST()
1540 s = DB::Open(opts, dbname, &db); in TEST()
2095 std::string dbname = test::TmpDir() + "/leveldb_test_benchmark"; in BM_LogAndApply() local
2096 DestroyDB(dbname, Options()); in BM_LogAndApply()
2101 Status s = DB::Open(opts, dbname, &db); in BM_LogAndApply()
2115 VersionSet vset(dbname, &options, NULL, &cmp); in BM_LogAndApply()
H A Ddb_impl.h28 DBImpl(const Options& options, const std::string& dbname);
H A Dversion_set.h167 VersionSet(const std::string& dbname,
H A Dversion_set.cc775 VersionSet::VersionSet(const std::string& dbname, in VersionSet() argument
780 dbname_(dbname), in VersionSet()
/leveldb-1.20/include/leveldb/
H A Ddb.h159 Status RepairDB(const std::string& dbname, const Options& options);