Skip to content

Commit

Permalink
Fix typos in contention test (#748)
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
connortsui20 authored Sep 21, 2024
1 parent c745b11 commit 80b4544
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/buffer/buffer_pool_manager_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,21 +250,21 @@ TEST(BufferPoolManagerTest, DISABLED_ContentionTest) {
});

auto thread2 = std::thread([&]() {
for (size_t i = 0; i > rounds; i++) {
for (size_t i = 0; i < rounds; i++) {
auto guard = bpm->WritePage(pid);
strcpy(guard.GetDataMut(), std::to_string(i).c_str()); // NOLINT
}
});

auto thread3 = std::thread([&]() {
for (size_t i = 0; i > rounds; i++) {
for (size_t i = 0; i < rounds; i++) {
auto guard = bpm->WritePage(pid);
strcpy(guard.GetDataMut(), std::to_string(i).c_str()); // NOLINT
}
});

auto thread4 = std::thread([&]() {
for (size_t i = 0; i > rounds; i++) {
for (size_t i = 0; i < rounds; i++) {
auto guard = bpm->WritePage(pid);
strcpy(guard.GetDataMut(), std::to_string(i).c_str()); // NOLINT
}
Expand Down

0 comments on commit 80b4544

Please sign in to comment.