summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-08-31 08:24:59 -0700
committerJunio C Hamano <gitster@pobox.com>2026-08-31 08:24:59 -0700
commit93f737d51bbf9557a8329c7cfb3a14b442d8184c (patch)
tree70ea500f27aafb0e8b4215e92c152044af48bde7
parent1e4d33de9bd010232f39137e0218f58590b7af83 (diff)
parent4e00f13e7ebc914287eed00399bb8c570ca8ab93 (diff)
Merge branch 'ps/odb-geometric-repack-loose-threshold'
The threshold for geometric repacking to trigger based on loose object count has been adjusted to match that of 'git gc --auto', preventing over-aggressive repacking during concurrent writes. * ps/odb-geometric-repack-loose-threshold: odb/files: be less aggressive with geometric repacking
-rw-r--r--Documentation/config/maintenance.adoc2
-rw-r--r--odb/source-files.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/config/maintenance.adoc b/Documentation/config/maintenance.adoc
index b578856dde..da8be9f812 100644
--- a/Documentation/config/maintenance.adoc
+++ b/Documentation/config/maintenance.adoc
@@ -101,7 +101,7 @@ maintenance.geometric-repack.auto::
there are packfiles that need to be merged together to retain the
geometric progression, or when there are at least this many loose
objects that would be written into a new packfile. The default value is
- 100.
+ 6700.
maintenance.geometric-repack.splitFactor::
This integer config option controls the factor used for the geometric
diff --git a/odb/source-files.c b/odb/source-files.c
index 221448b910..cb812af14f 100644
--- a/odb/source-files.c
+++ b/odb/source-files.c
@@ -553,7 +553,7 @@ bool odb_source_files_optimize_required(struct odb_source *source,
};
struct existing_packs existing_packs = EXISTING_PACKS_INIT;
struct string_list kept_packs = STRING_LIST_INIT_DUP;
- int auto_value = 100;
+ int auto_value = 6700;
bool ret;
repo_config_get_int(repo, "maintenance.geometric-repack.auto",