浏览代码

Merge pull request #1664 from ThomasWaldmann/hashindex-api-version-bumo

Hashindex api version bump
TW 8 年之前
父节点
当前提交
8318f5ac0c
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      borg/hashindex.pyx
  2. 1 1
      borg/helpers.py

+ 1 - 1
borg/hashindex.pyx

@@ -4,7 +4,7 @@ import os
 cimport cython
 from libc.stdint cimport uint32_t, UINT32_MAX, uint64_t
 
-API_VERSION = 2
+API_VERSION = 3
 
 
 cdef extern from "_hashindex.c":

+ 1 - 1
borg/helpers.py

@@ -80,7 +80,7 @@ class PlaceholderError(Error):
 
 def check_extension_modules():
     from . import platform
-    if hashindex.API_VERSION != 2:
+    if hashindex.API_VERSION != 3:
         raise ExtensionModuleError
     if chunker.API_VERSION != 2:
         raise ExtensionModuleError