Merge task table and task log into a single table (#30)

* Merge task table and task log

* Fix test in db tests

* Address Robert's comments and some better error checking

* Add a LOG_FATAL that exits the program
This commit is contained in:
Stephanie Wang
2016-11-10 18:13:26 -08:00
committed by Philipp Moritz
parent 194bdb1d96
commit 9d1e750e8f
30 changed files with 1578 additions and 842 deletions
+5 -1
View File
@@ -25,7 +25,11 @@ unique_id globally_unique_id(void) {
}
bool object_ids_equal(object_id first_id, object_id second_id) {
return memcmp(&first_id, &second_id, sizeof(object_id)) == 0 ? true : false;
return UNIQUE_ID_EQ(first_id, second_id) ? true : false;
}
bool object_id_is_nil(object_id id) {
return object_ids_equal(id, NIL_OBJECT_ID);
}
char *sha1_to_hex(const unsigned char *sha1, char *buffer) {