From fc9b4160139c66f50fd5ad42d05e9111483b2e69 Mon Sep 17 00:00:00 2001 From: Cheng Chang Date: Tue, 20 Oct 2020 11:48:48 -0700 Subject: [PATCH] Fix typo in db_wal_test (#7571) Summary: as title Pull Request resolved: https://github.com/facebook/rocksdb/pull/7571 Test Plan: make check Reviewed By: zhichao-cao Differential Revision: D24392577 Pulled By: cheng-chang fbshipit-source-id: c94f92db48270d0e215aa0f2782b0ff2e31bf708 --- db/db_wal_test.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/db/db_wal_test.cc b/db/db_wal_test.cc index e4a57aff9..f17861b3f 100644 --- a/db/db_wal_test.cc +++ b/db/db_wal_test.cc @@ -47,8 +47,8 @@ class EnrichedSpecialEnv : public SpecialEnv { InstrumentedMutexLock l(&env_mutex_); if (f == skipped_wal) { deleted_wal_reopened = true; - if (IsWAL(f) && largetest_deleted_wal.size() != 0 && - f.compare(largetest_deleted_wal) <= 0) { + if (IsWAL(f) && largest_deleted_wal.size() != 0 && + f.compare(largest_deleted_wal) <= 0) { gap_in_wals = true; } } @@ -62,9 +62,9 @@ class EnrichedSpecialEnv : public SpecialEnv { // remember its name partly because the application might attempt to // delete the file again. if (skipped_wal.size() != 0 && skipped_wal != fname) { - if (largetest_deleted_wal.size() == 0 || - largetest_deleted_wal.compare(fname) < 0) { - largetest_deleted_wal = fname; + if (largest_deleted_wal.size() == 0 || + largest_deleted_wal.compare(fname) < 0) { + largest_deleted_wal = fname; } } else { skipped_wal = fname; @@ -82,7 +82,7 @@ class EnrichedSpecialEnv : public SpecialEnv { // the wal whose actual delete was skipped by the env std::string skipped_wal = ""; // the largest WAL that was requested to be deleted - std::string largetest_deleted_wal = ""; + std::string largest_deleted_wal = ""; // number of WALs that were successfully deleted std::atomic deleted_wal_cnt = {0}; // the WAL whose delete from fs was skipped is reopened during recovery