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

Method TEST_CompactMemTable

src/leveldb/db/db_impl.cc:634–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632}
633
634Status DBImpl::TEST_CompactMemTable() {
635 // nullptr batch means just wait for earlier writes to be done
636 Status s = Write(WriteOptions(), nullptr);
637 if (s.ok()) {
638 // Wait until the compaction completes
639 MutexLock l(&mutex_);
640 while (imm_ != nullptr && bg_error_.ok()) {
641 background_work_finished_signal_.Wait();
642 }
643 if (imm_ != nullptr) {
644 s = bg_error_;
645 }
646 }
647 return s;
648}
649
650void DBImpl::RecordBackgroundError(const Status& s) {
651 mutex_.AssertHeld();

Callers 6

TESTFunction · 0.80
CompactMemTableMethod · 0.80
TESTFunction · 0.80
MakeTablesMethod · 0.80
TESTFunction · 0.80
DoReadsMethod · 0.80

Calls 2

WriteOptionsClass · 0.85
WaitMethod · 0.45

Tested by 6

TESTFunction · 0.64
CompactMemTableMethod · 0.64
TESTFunction · 0.64
MakeTablesMethod · 0.64
TESTFunction · 0.64
DoReadsMethod · 0.64