Home
last modified time | relevance | path

Searched refs:record (Results 1 – 9 of 9) sorted by relevance

/leveldb-1.20/doc/
H A Dlog_format.md8 block := record* trailer?
9 record :=
15 A record never starts within the last six bytes of a block (since it won't fit).
20 length record is added, the writer must emit a FIRST record (which contains zero
32 The FULL record contains the contents of an entire user record.
37 a user record, and MIDDLE is the type of all interior fragments of a user
38 record.
46 **A** will be stored as a FULL record in the first block.
53 **C** will be stored as a FULL record in the fourth block.
62 file are embedded as a record inside another log file.
[all …]
H A Dtable_format.md100 TODO(postrelease): record following stats.
/leveldb-1.20/db/
H A Ddumpfile.cc61 Slice record; in PrintLogContents() local
63 while (reader.ReadRecord(&record, &scratch)) { in PrintLogContents()
64 (*func)(reader.LastRecordOffset(), record, dst); in PrintLogContents()
93 static void WriteBatchPrinter(uint64_t pos, Slice record, WritableFile* dst) { in WriteBatchPrinter() argument
97 if (record.size() < 12) { in WriteBatchPrinter()
99 AppendNumberTo(&r, record.size()); in WriteBatchPrinter()
105 WriteBatchInternal::SetContents(&batch, record); in WriteBatchPrinter()
124 static void VersionEditPrinter(uint64_t pos, Slice record, WritableFile* dst) { in VersionEditPrinter() argument
129 Status s = edit.DecodeFrom(record); in VersionEditPrinter()
H A Dlog_test.cc147 Slice record; in Read() local
148 if (reader_->ReadRecord(&record, &scratch)) { in Read()
149 return record.ToString(); in Read()
197 std::string record(initial_offset_record_sizes_[i], in WriteInitialOffsetLog()
199 Write(record); in WriteInitialOffsetLog()
214 Slice record; in CheckOffsetPastEndReturnsNoRecords() local
216 ASSERT_TRUE(!offset_reader->ReadRecord(&record, &scratch)); in CheckOffsetPastEndReturnsNoRecords()
232 Slice record; in CheckInitialOffsetRecord() local
234 ASSERT_TRUE(offset_reader->ReadRecord(&record, &scratch)); in CheckInitialOffsetRecord()
236 record.size()); in CheckInitialOffsetRecord()
[all …]
H A Dlog_reader.cc60 bool Reader::ReadRecord(Slice* record, std::string* scratch) { in ReadRecord() argument
68 record->clear(); in ReadRecord()
110 *record = fragment; in ReadRecord()
146 *record = Slice(*scratch); in ReadRecord()
H A Drepair.cc198 Slice record; in ConvertLogToTable() local
203 while (reader.ReadRecord(&record, &scratch)) { in ConvertLogToTable()
204 if (record.size() < 12) { in ConvertLogToTable()
206 record.size(), Status::Corruption("log record too small")); in ConvertLogToTable()
209 WriteBatchInternal::SetContents(&batch, record); in ConvertLogToTable()
405 std::string record; in WriteDescriptor() local
406 edit_.EncodeTo(&record); in WriteDescriptor()
407 status = log.AddRecord(record); in WriteDescriptor()
H A Dlog_reader.h53 bool ReadRecord(Slice* record, std::string* scratch);
H A Dversion_set.cc866 std::string record; in LogAndApply() local
867 edit->EncodeTo(&record); in LogAndApply()
868 s = descriptor_log_->AddRecord(record); in LogAndApply()
945 Slice record; in Recover() local
947 while (reader.ReadRecord(&record, &scratch) && s.ok()) { in Recover()
949 s = edit.DecodeFrom(record); in Recover()
1127 std::string record; in WriteSnapshot() local
1128 edit.EncodeTo(&record); in WriteSnapshot()
1129 return log->AddRecord(record); in WriteSnapshot()
H A Ddb_impl.cc192 std::string record; in NewDB() local
193 new_db.EncodeTo(&record); in NewDB()
194 s = log.AddRecord(record); in NewDB()
409 Slice record; in RecoverLogFile() local
413 while (reader.ReadRecord(&record, &scratch) && in RecoverLogFile()
415 if (record.size() < 12) { in RecoverLogFile()
417 record.size(), Status::Corruption("log record too small")); in RecoverLogFile()
420 WriteBatchInternal::SetContents(&batch, record); in RecoverLogFile()