refs.c: add transaction.status and track OPEN/CLOSED
commit676eef00ad6751b780f7d7777f188301592ed179
authorRonnie Sahlberg <sahlberg@google.com>
Tue, 29 Apr 2014 19:06:19 +0000 (29 12:06 -0700)
committerJonathan Nieder <jrnieder@gmail.com>
Tue, 2 Sep 2014 20:41:51 +0000 (2 13:41 -0700)
tree6e03d90eb2480920228e31f2580b4622236baf0b
parent2fe6390b713ecbbe4d3cbc911fec4809ba1e8f91
refs.c: add transaction.status and track OPEN/CLOSED

Track the state of a transaction in a new state field. Check the field for
sanity, i.e. that state must be OPEN when _commit/_create/_delete or
_update is called or else die(BUG:...)

Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
refs.c