소스 검색

Merge pull request #6220 from ThomasWaldmann/fix-intermediate-commits

fix intermediate commits, shall be at end of segment
TW 3 년 전
부모
커밋
495c6bb977
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/borg/repository.py

+ 1 - 1
src/borg/repository.py

@@ -1634,7 +1634,7 @@ class LoggedIO:
     def write_commit(self, intermediate=False):
         # Intermediate commits go directly into the current segment - this makes checking their validity more
         # expensive, but is faster and reduces clobber. Final commits go into a new segment.
-        fd = self.get_write_fd(want_new=not intermediate)
+        fd = self.get_write_fd(want_new=not intermediate, no_new=intermediate)
         if intermediate:
             fd.sync()
         header = self.header_no_crc_fmt.pack(self.header_fmt.size, TAG_COMMIT)