summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Christensen <jdc@uwo.ca>2023-02-12 08:24:27 -0500
committerDan Christensen <jdc@uwo.ca>2023-02-12 08:24:27 -0500
commit8eff0b2f0255f1be6117452a4aa0e1c91a3f9efd (patch)
treea07d889cd82dffe4a2054a9d512a877f2c4209fe
parent2f9f22e2a846ac7f919baac3f50cd220d5caa2aa (diff)
_hashindex.c: fix comment
-rw-r--r--src/borg/_hashindex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/borg/_hashindex.c b/src/borg/_hashindex.c
index 2184e3997..b912650c7 100644
--- a/src/borg/_hashindex.c
+++ b/src/borg/_hashindex.c
@@ -837,7 +837,7 @@ hashindex_compact(HashIndex *index)
int tail = 0;
uint64_t saved_size = (index->num_buckets - index->num_entries) * (uint64_t)index->bucket_size;
- /* idx will point to the last filled spot and tail will point to the first empty spot. */
+ /* idx will point to the last filled spot and tail will point to the first empty or deleted spot. */
for(;;) {
/* Find the last filled spot >= index->num_entries. */
while((idx >= index->num_entries) && BUCKET_IS_EMPTY_OR_DELETED(index, idx)) {