소스 검색

_hashindex.c: fix comment

Dan Christensen 2 년 전
부모
커밋
8eff0b2f02
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)) {