]> git.99rst.org Git - git.git/commit
object-file: embed transaction flush logic in commit function
authorJustin Tobler <redacted>
Fri, 10 Jul 2026 16:37:14 +0000 (11:37 -0500)
committerJunio C Hamano <redacted>
Fri, 10 Jul 2026 20:21:52 +0000 (13:21 -0700)
commitee1785a49080943dcde9303c3771de04c873e93c
treef6ee09d901897ec164e296ffc9c1cac801b13058
parent9c182bb59bf0eb7fc3deecec65b4d5efe47df28c
object-file: embed transaction flush logic in commit function

When a "files" transaction is committed,
`flush_loose_object_transaction()` is invoked to handle performing a
hardware flush along with migrating the temporary object directory into
the primary and configuring the repository ODB source accordingly. The
function name here is a bit misleading because the helper is doing a bit
more than just "flushing" the transaction contents. Also, in a
subsequent commit, the transaction temporary directory is used to stage
packfiles and not just loose objects anymore.

Lift the helper function logic into `odb_transaction_files_commit()` to
more accurately signal to readers the operation being performed.

Signed-off-by: Justin Tobler <redacted>
Signed-off-by: Junio C Hamano <redacted>
object-file.c
git clone https://git.99rst.org/PROJECT