Added error handling and re-mapping of databases to dbshard router in addition to hint detection.
This commit is contained in:
@ -275,7 +275,10 @@ parse_mapping_response(ROUTER_CLIENT_SES* rses, char* target, GWBUF* buf)
|
||||
|
||||
while(row)
|
||||
{
|
||||
hashtable_add(rses->dbhash, row->data[0], target);
|
||||
if(hashtable_add(rses->dbhash, row->data[0], target))
|
||||
{
|
||||
skygw_log_write(LOGFILE_TRACE,"shardrouter: <%s, %s>",target,row->data[0]);
|
||||
}
|
||||
row = row->next;
|
||||
}
|
||||
resultset_free(rset);
|
||||
|
Reference in New Issue
Block a user