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
main
Junio C Hamano 2026-08-31 08:24:59 -07:00
commit 93f737d51b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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",