Pārlūkot izejas kodu

Merge pull request #1668 from ThomasWaldmann/bump-hashindex-version-master

hashindex: bump api_version
enkore 8 gadi atpakaļ
vecāks
revīzija
24feaf35dc
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1 1
      src/borg/hashindex.pyx
  2. 1 1
      src/borg/helpers.py

+ 1 - 1
src/borg/hashindex.pyx

@@ -8,7 +8,7 @@ from libc.stdint cimport uint32_t, UINT32_MAX, uint64_t
 from libc.errno cimport errno
 from libc.errno cimport errno
 from cpython.exc cimport PyErr_SetFromErrnoWithFilename
 from cpython.exc cimport PyErr_SetFromErrnoWithFilename
 
 
-API_VERSION = 3
+API_VERSION = 4
 
 
 
 
 cdef extern from "_hashindex.c":
 cdef extern from "_hashindex.c":

+ 1 - 1
src/borg/helpers.py

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