This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <cassandra.h> | |
| #include <iostream> | |
| #include <chrono> | |
| #include <thread> | |
| void on_host_listener(CassHostListenerEvent event, const CassInet inet, void *data) { | |
| char address[CASS_INET_STRING_LENGTH]; | |
| cass_inet_string(inet, address); | |
| if (event == CASS_HOST_LISTENER_EVENT_ADD) { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // --- a/service/storage_service.cc | |
| // +++ b/service/storage_service.cc | |
| // @@ -847,8 +847,24 @@ future<> storage_service::check_and_repair_cdc_streams() { | |
| bool should_regenerate = false; | |
| std::optional<cdc::topology_description> gen; | |
| try { | |
| gen = _sys_dist_ks.local().read_cdc_topology_description( | |
| *latest, { _token_metadata.count_normal_token_owners() }).get0(); | |
| } catch (exceptions::request_timeout_exception& e) { |