Merge branch 'xr/ref-debug-remove-on-disk'

The "debug" ref-backend was missing a method implementation, which
has been corrected.

* xr/ref-debug-remove-on-disk:
  refs: add missing remove_on_disk implementation for debug backend
main
Junio C Hamano 2025-11-04 07:48:08 -08:00
commit 517964205c
1 changed files with 9 additions and 0 deletions

View File

@ -47,6 +47,14 @@ static int debug_create_on_disk(struct ref_store *refs, int flags, struct strbuf
return res;
}

static int debug_remove_on_disk(struct ref_store *refs, struct strbuf *err)
{
struct debug_ref_store *drefs = (struct debug_ref_store *)refs;
int res = drefs->refs->be->remove_on_disk(drefs->refs, err);
trace_printf_key(&trace_refs, "remove_on_disk: %d\n", res);
return res;
}

static int debug_transaction_prepare(struct ref_store *refs,
struct ref_transaction *transaction,
struct strbuf *err)
@ -432,6 +440,7 @@ struct ref_storage_be refs_be_debug = {
.init = NULL,
.release = debug_release,
.create_on_disk = debug_create_on_disk,
.remove_on_disk = debug_remove_on_disk,

/*
* None of these should be NULL. If the "files" backend (in