Home
last modified time | relevance | path

Searched refs:log (Results 1 – 17 of 17) sorted by relevance

/leveldb-1.20/doc/
H A Dimpl.md13 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 Dlog_format.md3 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 Dindex.md523 3. [Format of a log file](log_format.md)
/leveldb-1.20/db/
H A Dlog_test.cc14 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 Drepair.cc162 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 Dversion_set.h28 namespace log { class Writer; }
293 Status WriteSnapshot(log::Writer* log);
310 log::Writer* descriptor_log_;
H A Dlog_format.h12 namespace log {
H A Dlog_writer.h17 namespace log {
H A Dlog_reader.h18 namespace log {
H A Ddumpfile.cc36 class CorruptionReporter : public log::Reader::Reporter {
60 log::Reader reader(file, &reporter, true, 0); in PrintLogContents()
H A Dlog_writer.cc13 namespace log { namespace
H A Ddb_impl.cc191 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 Dversion_set.cc855 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 Dlog_reader.cc13 namespace log { namespace
H A Ddb_impl.h145 log::Writer* log_;
H A Drecovery_test.cc144 log::Writer writer(file); in MakeLogFile()
H A Dcorruption_test.cc206 Corrupt(kLogFile, log::kBlockSize + 1000, 1); // Somewhere in second block in TEST()