Searched refs:log (Results 1 – 17 of 17) sorted by relevance
| /leveldb-1.20/doc/ |
| H A D | impl.md | 13 A log file (*.log) stores a sequence of recent updates. Each update is appended 14 to the current log file. When the log file reaches a pre-determined size 16 and a new log file is created for future updates. 18 A copy of the current log file is kept in an in-memory structure (the 29 table generated from a log file is placed in a special **young** level (also 50 serving state (as files are added or removed) are appended to this log. 67 When the log file grows above a certain size (1MB by default): 68 Create a brand new memtable and log file and direct future updates here 72 Delete the old log file and the old memtable 162 * Convert log chunk to a new level-0 sstable [all …]
|
| H A D | log_format.md | 3 The log file contents are a sequence of 32KB blocks. The only exception is that 61 side-benefit, we do not get confused when part of the contents of one log 62 file are embedded as a record inside another log file.
|
| H A D | index.md | 523 3. [Format of a log file](log_format.md)
|
| /leveldb-1.20/db/ |
| H A D | log_test.cc | 14 namespace log { namespace 248 2 * log::kBlockSize - 1000, // Span three blocks 251 log::kBlockSize - kHeaderSize, // Consume the entirety of block 4. 259 (2 * log::kBlockSize - 1000) + 3 * kHeaderSize, 261 (2 * log::kBlockSize - 1000) + 3 * kHeaderSize 263 3 * log::kBlockSize, 557 CheckInitialOffsetRecord(log::kBlockSize - 4, 3); in TEST() 561 CheckInitialOffsetRecord(log::kBlockSize + 1, 3); in TEST() 565 CheckInitialOffsetRecord(2 * log::kBlockSize + 1, 3); in TEST() 570 2 * (kHeaderSize + 1000) + (2 * log::kBlockSize - 1000) + 3 * kHeaderSize, in TEST() [all …]
|
| H A D | repair.cc | 162 Status ConvertLogToTable(uint64_t log) { in ConvertLogToTable() argument 163 struct LogReporter : public log::Reader::Reporter { in ConvertLogToTable() 177 std::string logname = LogFileName(dbname_, log); in ConvertLogToTable() 188 reporter.lognum = log; in ConvertLogToTable() 193 log::Reader reader(lfile, &reporter, false/*do not checksum*/, in ConvertLogToTable() 215 (unsigned long long) log, in ConvertLogToTable() 237 (unsigned long long) log, in ConvertLogToTable() 404 log::Writer log(file); in WriteDescriptor() local 407 status = log.AddRecord(record); in WriteDescriptor()
|
| H A D | version_set.h | 28 namespace log { class Writer; } 293 Status WriteSnapshot(log::Writer* log); 310 log::Writer* descriptor_log_;
|
| H A D | log_format.h | 12 namespace log {
|
| H A D | log_writer.h | 17 namespace log {
|
| H A D | log_reader.h | 18 namespace log {
|
| H A D | dumpfile.cc | 36 class CorruptionReporter : public log::Reader::Reporter { 60 log::Reader reader(file, &reporter, true, 0); in PrintLogContents()
|
| H A D | log_writer.cc | 13 namespace log { namespace
|
| H A D | db_impl.cc | 191 log::Writer log(file); in NewDB() local 194 s = log.AddRecord(record); in NewDB() 368 struct LogReporter : public log::Reader::Reporter { in RecoverLogFile() 402 log::Reader reader(file, &reporter, true/*checksum*/, in RecoverLogFile() 463 log_ = new log::Writer(logfile_, lfile_size); in RecoverLogFile() 1369 log_ = new log::Writer(lfile); in MakeRoomForWrite() 1510 impl->log_ = new log::Writer(lfile); in Open()
|
| H A D | version_set.cc | 855 descriptor_log_ = new log::Writer(descriptor_file_); in LogAndApply() 906 struct LogReporter : public log::Reader::Reporter { in Recover() 944 log::Reader reader(file, &reporter, true/*checksum*/, 0/*initial_offset*/); in Recover() 1053 descriptor_log_ = new log::Writer(descriptor_file_, manifest_size); in ReuseManifest() 1102 Status VersionSet::WriteSnapshot(log::Writer* log) { in WriteSnapshot() argument 1129 return log->AddRecord(record); in WriteSnapshot()
|
| H A D | log_reader.cc | 13 namespace log { namespace
|
| H A D | db_impl.h | 145 log::Writer* log_;
|
| H A D | recovery_test.cc | 144 log::Writer writer(file); in MakeLogFile()
|
| H A D | corruption_test.cc | 206 Corrupt(kLogFile, log::kBlockSize + 1000, 1); // Somewhere in second block in TEST()
|