mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
passing object info information with redis module (#138)
* adding object broadcast channel; published on each object table add * publishing data size to the bcast channel * bug fix: objectkey * update object tests to test for data size: C + py * remove debug * clang format * Minor changes. * Fix error. * merging with Robert's comments * clang format for the object table test upgrade
This commit is contained in:
committed by
Robert Nishihara
parent
269f37e26f
commit
cb3e6cde9e
@@ -963,6 +963,7 @@ void object_present_callback(object_id object_id,
|
||||
/* This callback is used by both fetch and wait. Therefore, it may have to
|
||||
* handle outstanding fetch and wait requests. */
|
||||
void object_table_subscribe_callback(object_id object_id,
|
||||
int64_t data_size,
|
||||
int manager_count,
|
||||
const char *manager_vector[],
|
||||
void *context) {
|
||||
@@ -1378,7 +1379,7 @@ void start_server(const char *store_socket_name,
|
||||
handle_new_client, g_manager_state);
|
||||
/* Set up a client-specific channel to receive notifications from the object
|
||||
* table. */
|
||||
object_table_subscribe_to_notifications(g_manager_state->db,
|
||||
object_table_subscribe_to_notifications(g_manager_state->db, false,
|
||||
object_table_subscribe_callback,
|
||||
g_manager_state, NULL, NULL, NULL);
|
||||
/* Run the event loop. */
|
||||
|
||||
Reference in New Issue
Block a user