mirror of
https://github.com/wassname/ray.git
synced 2026-08-08 11:25:28 +08:00
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:
committed by
Philipp Moritz
parent
194bdb1d96
commit
9d1e750e8f
+5
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user