@@ -3404,7 +3404,7 @@ class DWALPager final : public IPager2 {
34043404
34053405 // Maximum number of remaining remap entries to keep before obeying stop command.
34063406 double toleranceRatio = buggify () ? deterministicRandom ()->randomInt (0 , 10 ) / 100.0
3407- : SERVER_KNOBS->REDWOOD_REMAP_CLEANUP_TOLERANCE_RATIO ;
3407+ : SERVER_KNOBS->REDWOOD_REMAP_CLEANUP_TOLERANCE_RATIO ;
34083408 // For simplicity, we assume each entry in the remap queue corresponds to one remapped page.
34093409 uint64_t remapCleanupWindowEntries =
34103410 static_cast <uint64_t >(self->remapCleanupWindowBytes / self->header .pageSize );
@@ -7601,16 +7601,16 @@ class KeyValueStoreRedwood : public IKeyValueStore {
76017601 pageCacheBytes =
76027602 g_network->isSimulated ()
76037603 ? (buggify () ? deterministicRandom ()->randomInt (pageSize, FLOW_KNOBS->BUGGIFY_SIM_PAGE_CACHE_4K )
7604- : FLOW_KNOBS->SIM_PAGE_CACHE_4K )
7604+ : FLOW_KNOBS->SIM_PAGE_CACHE_4K )
76057605 : FLOW_KNOBS->PAGE_CACHE_4K ;
76067606 }
76077607 // Rough size of pages to keep in remap cleanup queue before being cleanup.
76087608 int64_t remapCleanupWindowBytes =
76097609 g_network->isSimulated ()
76107610 ? (buggify () ? (deterministicRandom ()->coinflip ()
7611- ? deterministicRandom ()->randomInt64 (0 , 100 * 1024 ) // small window
7612- : deterministicRandom ()->randomInt64 (0 , 100 * 1024 * 1024 )) // large window
7613- : 100 * 1024 * 1024 ) // 100M
7611+ ? deterministicRandom ()->randomInt64 (0 , 100 * 1024 ) // small window
7612+ : deterministicRandom ()->randomInt64 (0 , 100 * 1024 * 1024 )) // large window
7613+ : 100 * 1024 * 1024 ) // 100M
76147614 : SERVER_KNOBS->REDWOOD_REMAP_CLEANUP_WINDOW_BYTES ;
76157615
76167616 IPager2* pager = new DWALPager (pageSize,
@@ -9786,8 +9786,8 @@ TEST_CASE("Lredwood/correctness/btree") {
97869786 params.getDouble (" advanceOldVersionProbability" ).orDefault (deterministicRandom ()->random01 ());
97879787 state int64_t pageCacheBytes =
97889788 params.getInt (" pageCacheBytes" )
9789- .orDefault (pagerMemoryOnly ? 2e9
9790- : (pageSize * deterministicRandom ()->randomInt (1 , (buggify () ? 10 : 10000 ) + 1 )));
9789+ .orDefault (
9790+ pagerMemoryOnly ? 2e9 : (pageSize * deterministicRandom ()->randomInt (1 , (buggify () ? 10 : 10000 ) + 1 )));
97919791 state Version versionIncrement =
97929792 params.getInt (" versionIncrement" ).orDefault (deterministicRandom ()->randomInt64 (1 , 1e8 ));
97939793 state int64_t remapCleanupWindowBytes =
0 commit comments