MCPcopy Create free account
hub / github.com/baidu/tera / AppendToCacheFile

Method AppendToCacheFile

src/leveldb/table/table_builder.cc:364–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364void TableBuilder::AppendToCacheFile(const Slice& slice) {
365 if (!rep_->cache_file) {
366 return;
367 }
368 auto s = rep_->cache_file->Append(slice);
369 if (!s.ok()) {
370 LEVELDB_LOG("Append to cache file failed: %s : %s\n", rep_->cache_file->Path().c_str(),
371 s.ToString().c_str());
372 rep_->cache_file->Abandon();
373 rep_->cache_file = nullptr;
374 }
375}
376} // leveldb

Callers

nothing calls this directly

Calls 5

AppendMethod · 0.45
okMethod · 0.45
PathMethod · 0.45
ToStringMethod · 0.45
AbandonMethod · 0.45

Tested by

no test coverage detected