Forráskód Böngészése

_hashindex.c: fix comment

Dan Christensen 2 éve
szülő
commit
8eff0b2f02
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/borg/_hashindex.c

+ 1 - 1
src/borg/_hashindex.c

@@ -837,7 +837,7 @@ hashindex_compact(HashIndex *index)
     int tail = 0;
     int tail = 0;
     uint64_t saved_size = (index->num_buckets - index->num_entries) * (uint64_t)index->bucket_size;
     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(;;) {
     for(;;) {
         /* Find the last filled spot >= index->num_entries. */
         /* Find the last filled spot >= index->num_entries. */
         while((idx >= index->num_entries) && BUCKET_IS_EMPTY_OR_DELETED(index, idx)) {
         while((idx >= index->num_entries) && BUCKET_IS_EMPTY_OR_DELETED(index, idx)) {