MCPcopy Index your code
hub / github.com/git/git / unclean_stack_close

Function unclean_stack_close

t/unit-tests/u-reftable-stack.c:1163–1170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1161}
1162
1163static void unclean_stack_close(struct reftable_stack *st)
1164{
1165 /* break abstraction boundary to simulate unclean shutdown. */
1166 for (size_t i = 0; i < st->tables_len; i++)
1167 reftable_table_decref(st->tables[i]);
1168 st->tables_len = 0;
1169 REFTABLE_FREE_AND_NULL(st->tables);
1170}
1171
1172void test_reftable_stack__compaction_concurrent_clean(void)
1173{

Calls 1

reftable_table_decrefFunction · 0.85