瀏覽代碼

io.write_commit() already implies io.close_segment()

Alan Jenkins 10 年之前
父節點
當前提交
3321a887d3
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      attic/repository.py

+ 0 - 1
attic/repository.py

@@ -300,7 +300,6 @@ class Repository(object):
             report_error('Adding commit tag to segment {}'.format(transaction_id))
             self.io.segment = transaction_id + 1
             self.io.write_commit()
-            self.io.close_segment()
         if current_index and not repair:
             if len(current_index) != len(self.index):
                 report_error('Index object count mismatch. {} != {}'.format(len(current_index), len(self.index)))