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

Method MakeTables

src/leveldb/db/db_test.cc:457–464  ·  view source on GitHub ↗

Do n memtable compactions, each of which produces an sstable covering the range [small_key,large_key].

Source from the content-addressed store, hash-verified

455 // Do n memtable compactions, each of which produces an sstable
456 // covering the range [small_key,large_key].
457 void MakeTables(int n, const std::string& small_key,
458 const std::string& large_key) {
459 for (int i = 0; i < n; i++) {
460 Put(small_key, "begin");
461 Put(large_key, "end");
462 dbfull()->TEST_CompactMemTable();
463 }
464 }
465
466 // Prevent pushing of new sstables into deeper levels by adding
467 // tables that cover a specified range to all levels.

Callers

nothing calls this directly

Calls 1

TEST_CompactMemTableMethod · 0.80

Tested by

no test coverage detected