Remove new gcs code from legacy Ray codepath (#2329)

This commit is contained in:
Philipp Moritz
2018-07-03 11:48:50 -07:00
committed by Robert Nishihara
parent 178346fa16
commit f21d783e6d
6 changed files with 2 additions and 149 deletions
+1 -5
View File
@@ -1162,13 +1162,9 @@ void redis_task_table_subscribe(TableCallbackData *callback_data) {
/* TASK_CHANNEL_PREFIX is defined in ray_redis_module.cc and must be kept in
* sync with that file. */
const char *TASK_CHANNEL_PREFIX = "TT:";
#if !RAY_USE_NEW_GCS
for (auto subscribe_context : db->subscribe_contexts) {
#else
/* In the new code path, subscriptions currently go through the
* primary redis shard. */
for (auto subscribe_context : {db->subscribe_context}) {
#endif
for (auto subscribe_context : db->subscribe_contexts) {
int status;
if (data->local_scheduler_id.is_nil()) {
/* TODO(swang): Implement the state_filter by translating the bitmask into