summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-07-30 11:37:12 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-07-30 11:37:12 -0400
commite5975f36d7f00cb5bca7b2532bfcfb3130d2a069 (patch)
treea658987a45c6409f03b76ffd31bdf41017572566 /src
parente87bcb3d770316fcb59f35d0aa6919c14a2a0eaa (diff)
downloadlibgit2-ethomson/odb_tests_priority.tar.gz
tests: reset odb backend priorityethomson/odb_tests_priority
Diffstat (limited to 'src')
-rw-r--r--src/odb.c4
-rw-r--r--src/odb.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/odb.c b/src/odb.c
index 35e225975..22c8c8c87 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -29,8 +29,8 @@
* We work under the assumption that most objects for long-running
* operations will be packed
*/
-int git_odb__loose_priority = 1;
-int git_odb__packed_priority = 2;
+int git_odb__loose_priority = GIT_ODB_DEFAULT_LOOSE_PRIORITY;
+int git_odb__packed_priority = GIT_ODB_DEFAULT_PACKED_PRIORITY;
bool git_odb__strict_hash_verification = true;
diff --git a/src/odb.h b/src/odb.h
index 5bebb6edc..4a8ebff19 100644
--- a/src/odb.h
+++ b/src/odb.h
@@ -24,6 +24,9 @@
#define GIT_OBJECT_DIR_MODE 0777
#define GIT_OBJECT_FILE_MODE 0444
+#define GIT_ODB_DEFAULT_LOOSE_PRIORITY 1
+#define GIT_ODB_DEFAULT_PACKED_PRIORITY 2
+
extern bool git_odb__strict_hash_verification;
/* DO NOT EXPORT */