* followed by a '/' character and the table name argument.
*/
chunk_reset(&trash);
- if (!chunk_strcpy(&trash, curpeers->id) || !chunk_memcat(&trash, "/", 1)) {
+ if (!chunk_strcpy(&trash, curpeers->id)) {
ha_alert("parsing [%s:%d]: '%s %s' : stick-table name too long.\n",
file, linenum, args[0], args[1]);
err_code |= ERR_ALERT | ERR_FATAL;
}
prefix_len = trash.data;
- if (!chunk_strcat(&trash, args[1])) {
+ if (!chunk_memcat(&trash, "/", 1) || !chunk_strcat(&trash, args[1])) {
ha_alert("parsing [%s:%d]: '%s %s' : stick-table name too long.\n",
file, linenum, args[0], args[1]);
err_code |= ERR_ALERT | ERR_FATAL;
intencode(st->local_id, &cursor);
/* encode table name */
- len = strlen(st->table->id);
+ len = strlen(st->table->nid);
intencode(len, &cursor);
- memcpy(cursor, st->table->id, len);
+ memcpy(cursor, st->table->nid, len);
cursor += len;
/* encode table type */
if (st->remote_id == table_id)
st->remote_id = 0;
- if (!p->remote_table && (table_id_len == strlen(st->table->id)) &&
- (memcmp(st->table->id, *msg_cur, table_id_len) == 0))
+ if (!p->remote_table && (table_id_len == strlen(st->table->nid)) &&
+ (memcmp(st->table->nid, *msg_cur, table_id_len) == 0))
p->remote_table = st;
}