Benny Halevy
e089c22ec1
token_metdata: futurize update_normal_tokens
...
The function complexity if O(#tokens) in the worst case
as for each endpoint token to traverses _token_to_endpoint_map
lineraly to erase the endpoint mapping if it exists.
This change renames the current implementation of
update_normal_tokens to update_normal_tokens_sync
and clones the code as a coroutine that returns a future
and may yield if needed.
Eventually we should futurize the whole token_metadata
and abstract_replication_strategy interface and get rid
of the synchronous functions. Until then the sync
version is still required from call sites that
are neither returning a future nor run in a seastar thread.
Signed-off-by: Benny Halevy <bhalevy@scylladb.com >
2020-12-22 10:35:15 +02:00
..
2020-09-21 16:32:53 +03:00
2020-06-10 15:49:51 +03:00
2020-08-15 20:26:02 +03:00
2020-11-16 22:32:32 -05:00
2020-07-16 16:38:48 +03:00
2020-06-25 15:37:23 -07:00
2020-08-06 15:41:31 +03:00
2020-09-23 20:55:15 +03:00
2020-03-05 11:38:11 +03:00
2020-09-03 21:13:21 +03:00
2020-06-16 16:15:23 +02:00
2020-09-21 16:32:53 +03:00
2020-12-01 18:01:23 +02:00
2020-03-10 13:13:48 -07:00
2020-11-02 18:02:01 +02:00
2020-10-15 19:25:24 +03:00
2020-07-21 10:33:49 -07:00
2020-05-07 16:19:56 +03:00
2020-11-12 12:36:16 +01:00
2020-05-28 11:34:35 +03:00
2020-12-04 15:09:30 +03:00
2020-02-20 10:43:41 +01:00
2020-03-23 23:19:21 +03:00
2020-03-16 20:27:45 +03:00
2020-10-19 15:40:55 -04:00
2020-03-16 20:27:45 +03:00
2020-07-07 23:08:09 +02:00
2020-12-06 19:34:13 +02:00
2020-08-26 20:44:11 +03:00
2020-10-11 17:44:30 +03:00
2020-10-30 08:06:04 +02:00
2020-05-26 20:46:45 +03:00
2020-08-15 20:26:02 +03:00
2020-06-03 14:44:00 +02:00
2020-06-18 14:18:21 +03:00
2020-11-12 12:36:13 +01:00
2020-10-19 15:38:11 -04:00
2020-09-28 11:27:23 +03:00
2020-06-18 15:13:56 +03:00
2020-09-28 11:27:23 +03:00
2020-11-11 14:20:23 +02:00
2020-04-05 12:46:04 +03:00
2020-12-15 16:03:18 +03:00
2020-10-30 08:06:04 +02:00
2020-03-16 20:26:34 +03:00
2020-07-14 16:29:49 +03:00
2020-03-04 13:28:16 +02:00
2020-07-06 11:24:12 +03:00
2020-10-19 15:38:11 -04:00
2020-05-13 09:37:39 +03:00
2020-03-05 11:38:11 +03:00
2020-05-26 20:49:58 +03:00
2020-09-08 15:59:25 +03:00
2020-09-28 10:53:56 +03:00
2020-10-12 15:56:56 +03:00
2020-12-08 15:55:04 +03:00
2020-10-13 12:32:13 +03:00
2020-09-28 10:53:48 +03:00
2020-12-18 16:33:27 +01:00
2020-12-07 16:47:52 +02:00
2020-09-28 11:27:23 +03:00
2020-10-26 11:54:42 +02:00
2020-12-22 10:35:15 +02:00
2020-07-23 16:49:35 +03:00
2020-04-22 18:24:54 +02:00
2020-10-16 15:24:37 +03:00
2020-10-19 15:38:11 -04:00
2020-12-08 19:19:55 +02:00
2020-06-18 12:38:31 +03:00
2020-11-17 16:01:25 +02:00
2020-12-16 14:46:48 -05:00
2020-03-05 11:38:11 +03:00
2020-11-17 16:01:25 +02:00
2020-12-11 21:21:22 +03:00
2020-09-23 20:55:11 +03:00
2020-03-25 14:19:30 +01:00
2020-12-16 15:00:29 -05:00
2020-04-12 17:48:44 +03:00
2020-10-14 16:45:21 +03:00
2020-10-30 08:03:44 +02:00
2020-09-23 20:55:12 +03:00
2020-12-10 12:45:25 +02:00
2020-11-09 19:57:40 +02:00
2020-11-09 19:57:40 +02:00
2020-09-28 11:27:47 +03:00
2020-09-23 20:55:13 +03:00
2020-09-23 20:55:15 +03:00
2020-07-21 10:33:49 -07:00
2020-08-11 10:37:34 +08:00
2020-12-22 10:35:15 +02:00
2020-11-03 21:30:11 +03:00
2020-08-03 17:32:49 +02:00
2020-03-05 11:38:11 +03:00
2020-11-02 16:47:32 +02:00
2020-09-07 18:11:21 +03:00
2020-08-16 13:49:55 +03:00
2020-10-21 11:14:44 +03:00
2020-01-27 11:09:01 +02:00
2020-10-19 10:23:31 +03:00
2020-08-18 14:31:04 +03:00
2020-03-16 20:27:45 +03:00
2020-03-16 20:27:45 +03:00
2020-08-20 14:53:07 +02:00
2020-02-10 20:54:32 +03:00