Explorar o código

_hashindex.c: fix comment

Dan Christensen %!s(int64=2) %!d(string=hai) anos
pai
achega
8eff0b2f02
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/borg/_hashindex.c

+ 1 - 1
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)) {