MCPcopy Create free account
hub / github.com/git/git / flock_release

Function flock_release

reftable/system.c:103–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103int flock_release(struct reftable_flock *l)
104{
105 struct lock_file *lockfile = l->priv;
106 int ret;
107
108 if (!lockfile)
109 return 0;
110
111 ret = rollback_lock_file(lockfile);
112 reftable_free(lockfile);
113 *l = REFTABLE_FLOCK_INIT;
114 if (ret < 0)
115 return REFTABLE_IO_ERROR;
116
117 return 0;
118}
119
120int flock_commit(struct reftable_flock *l)
121{

Callers 2

reftable_addition_closeFunction · 0.85
stack_compact_rangeFunction · 0.85

Calls 2

rollback_lock_fileFunction · 0.85
reftable_freeFunction · 0.85

Tested by

no test coverage detected