git/odb
Patrick Steinhardt 6066be88b4 odb/source: make `will_destroy` an implementation detail
The `struct odb_source::will_destroy` flag tracks whether a source is
part of a transaction that we know we'll destruct anyway. If so, the
backend can optimize for that particular case, for example by not
flushing any data to disk.

While the intent is sensible, it assumes that transactions are backed by
a separate source that's being linked into the object database. But that
may or may not be true, as backends may have significantly better ways
to achieve the same. So the assumption doesn't make much sense in the
first place, as we're now tracking backend-specific details on the
generic `struct odb_source` level.

Move the field from the generic source into the "loose" source, as this
is the only source that ever makes use of it anyway.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-10-08 07:31:19 -07:00
..
source-files.c odb/source-files: add the ability to have multiple object dirs 2026-10-08 07:31:19 -07:00
source-files.h odb/source-files: add the ability to have multiple object dirs 2026-10-08 07:31:19 -07:00
source-inmemory.c Merge branch 'ps/odb-alternates-at-creation' 2026-10-01 11:26:39 -07:00
source-inmemory.h odb/source: introduce function to map source type to name 2026-08-06 21:24:25 -07:00
source-loose.c odb/source: make `will_destroy` an implementation detail 2026-10-08 07:31:19 -07:00
source-loose.h odb/source: make `will_destroy` an implementation detail 2026-10-08 07:31:19 -07:00
source-packed.c Merge branch 'ps/odb-alternates-at-creation' 2026-10-01 11:26:39 -07:00
source-packed.h odb/source: introduce function to map source type to name 2026-08-06 21:24:25 -07:00
source.c odb/source: introduce function to map source type to name 2026-08-06 21:24:25 -07:00
source.h odb/source: make `will_destroy` an implementation detail 2026-10-08 07:31:19 -07:00
streaming.c Merge branch 'ps/odb-eagerly-load-alternates' 2026-08-31 08:24:59 -07:00
streaming.h odb/streaming: unify function names to create new streams 2026-08-05 09:42:50 -07:00
transaction.c Merge branch 'jt/receive-pack-pluggable-writes' 2026-08-31 08:25:00 -07:00
transaction.h Merge branch 'jt/receive-pack-pluggable-writes' 2026-08-31 08:25:00 -07:00