Added error handling and re-mapping of databases to dbshard router in addition to hint detection.

This commit is contained in:
Markus Makela
2015-02-02 21:36:41 +02:00
parent c9c55ecfa3
commit 9681b9cec4
3 changed files with 229 additions and 127 deletions

View File

@ -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);