MCPcopy Create free account
hub / github.com/ElementsProject/elements / Flush

Method Flush

src/leveldb/table/table_builder.cc:125–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void TableBuilder::Flush() {
126 Rep* r = rep_;
127 assert(!r->closed);
128 if (!ok()) return;
129 if (r->data_block.empty()) return;
130 assert(!r->pending_index_entry);
131 WriteBlock(&r->data_block, &r->pending_handle);
132 if (ok()) {
133 r->pending_index_entry = true;
134 r->status = r->file->Flush();
135 }
136 if (r->filter_block != nullptr) {
137 r->filter_block->StartBlock(r->offset);
138 }
139}
140
141void TableBuilder::WriteBlock(BlockBuilder* block, BlockHandle* handle) {
142 // File format contains a sequence of blocks where each block has:

Callers

nothing calls this directly

Calls 3

okFunction · 0.85
StartBlockMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected