diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-12-04 10:14:41 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-12-04 10:14:41 +0900 |
| commit | 7ee055b2378d18b5b4ce275ca26d399b7db14fa4 (patch) | |
| tree | 9137e0748bc9258d35cfc9ca07fd284a854037dd /builtin/fetch.c | |
| parent | Merge branch 'ps/leakfixes-part-10' (diff) | |
| parent | reftable: rename scratch buffer (diff) | |
| download | git-7ee055b2378d18b5b4ce275ca26d399b7db14fa4.tar.gz git-7ee055b2378d18b5b4ce275ca26d399b7db14fa4.zip | |
Merge branch 'ps/ref-backend-migration-optim'
The migration procedure between two ref backends has been optimized.
* ps/ref-backend-migration-optim:
reftable: rename scratch buffer
refs: adapt `initial_transaction` flag to be unsigned
reftable/block: optimize allocations by using scratch buffer
reftable/block: rename `block_writer::buf` variable
reftable/writer: optimize allocations by using a scratch buffer
refs: don't normalize log messages with `REF_SKIP_CREATE_REFLOG`
refs: skip collision checks in initial transactions
refs: use "initial" transaction semantics to migrate refs
refs/files: support symbolic and root refs in initial transaction
refs: introduce "initial" transaction flag
refs/files: move logic to commit initial transaction
refs: allow passing flags when setting up a transaction
Diffstat (limited to 'builtin/fetch.c')
| -rw-r--r-- | builtin/fetch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c index 06b4611958..335083eb10 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -665,7 +665,7 @@ static int s_update_ref(const char *action, */ if (!transaction) { transaction = our_transaction = ref_store_transaction_begin(get_main_ref_store(the_repository), - &err); + 0, &err); if (!transaction) { ret = STORE_REF_ERROR_OTHER; goto out; @@ -1667,7 +1667,7 @@ static int do_fetch(struct transport *transport, if (atomic_fetch) { transaction = ref_store_transaction_begin(get_main_ref_store(the_repository), - &err); + 0, &err); if (!transaction) { retcode = -1; goto cleanup; |
