Skip to content

Commit 80b4544

Browse files
authored
Fix typos in contention test (#748)
fix typos
1 parent c745b11 commit 80b4544

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/buffer/buffer_pool_manager_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,21 +250,21 @@ TEST(BufferPoolManagerTest, DISABLED_ContentionTest) {
250250
});
251251

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

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

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

0 commit comments

Comments
 (0)