Skip to content

Commit 5179642

Browse files
committed
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
2 parents aa61d1f + 6661cde commit 5179642

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

refs/debug.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ static int debug_create_on_disk(struct ref_store *refs, int flags, struct strbuf
4747
return res;
4848
}
4949

50+
static int debug_remove_on_disk(struct ref_store *refs, struct strbuf *err)
51+
{
52+
struct debug_ref_store *drefs = (struct debug_ref_store *)refs;
53+
int res = drefs->refs->be->remove_on_disk(drefs->refs, err);
54+
trace_printf_key(&trace_refs, "remove_on_disk: %d\n", res);
55+
return res;
56+
}
57+
5058
static int debug_transaction_prepare(struct ref_store *refs,
5159
struct ref_transaction *transaction,
5260
struct strbuf *err)
@@ -432,6 +440,7 @@ struct ref_storage_be refs_be_debug = {
432440
.init = NULL,
433441
.release = debug_release,
434442
.create_on_disk = debug_create_on_disk,
443+
.remove_on_disk = debug_remove_on_disk,
435444

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

0 commit comments

Comments
 (0)