summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-03-19 17:38:01 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-03-19 17:39:18 +0100
commitc5344fadd9a032171eed799aa1d91dc9247c810f (patch)
treed29aaf5613f7829238c0f6b34bdd536bfbb22f56 /src
parent57404865c81582f891c64213f48af72b559d4802 (diff)
downloadjustbuild-c5344fadd9a032171eed799aa1d91dc9247c810f.tar.gz
garbage_collector: Fix small doc typos
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/storage/garbage_collector.cpp6
-rw-r--r--src/buildtool/storage/garbage_collector.hpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/buildtool/storage/garbage_collector.cpp b/src/buildtool/storage/garbage_collector.cpp
index 01d803dc..82dbc8d2 100644
--- a/src/buildtool/storage/garbage_collector.cpp
+++ b/src/buildtool/storage/garbage_collector.cpp
@@ -160,7 +160,7 @@ auto GarbageCollector::TriggerGarbageCollection(bool no_rotation) noexcept
int remove_me_counter{};
// after releasing the shared lock, wait to get an exclusive lock for doing
- // the critical renamings
+ // the critical renaming
{
auto lock = ExclusiveLock();
if (not lock) {
@@ -169,7 +169,7 @@ auto GarbageCollector::TriggerGarbageCollection(bool no_rotation) noexcept
return false;
}
- // Frirst, while he have not yet created any to-remove directories, grab
+ // First, while he have not yet created any to-remove directories, grab
// all existing remove-me directories; they're left overs, as the clean
// up of owned directories is done with a shared lock.
std::vector<std::filesystem::path> left_over{};
@@ -238,7 +238,7 @@ auto GarbageCollector::TriggerGarbageCollection(bool no_rotation) noexcept
}
}
- // After releasing the exlusive lock, get a shared lock and remove what we
+ // After releasing the exclusive lock, get a shared lock and remove what we
// have to remove
bool success{};
{
diff --git a/src/buildtool/storage/garbage_collector.hpp b/src/buildtool/storage/garbage_collector.hpp
index b2f3a940..c10eebc2 100644
--- a/src/buildtool/storage/garbage_collector.hpp
+++ b/src/buildtool/storage/garbage_collector.hpp
@@ -64,7 +64,7 @@ class GarbageCollector {
[[nodiscard]] auto static GlobalUplinkTargetCacheEntry(
TargetCacheKey const& key) noexcept -> bool;
- /// \brief Trigger gargabe collection; unless no_rotation is given, this
+ /// \brief Trigger garbage collection; unless no_rotation is given, this
/// will include rotation of generations and deleting the oldest generation.
/// \returns true on success.
[[nodiscard]] auto static TriggerGarbageCollection(