Store session commands also as SessionCommand

The session commands are now duplicated as SessionCommand objects This
allows for an easier migration from the old session command implementation
to the new one.
This commit is contained in:
Markus Mäkelä
2017-06-14 10:18:01 +03:00
parent 18993bc8ca
commit dc8c20bf6a
4 changed files with 30 additions and 4 deletions

View File

@ -80,7 +80,7 @@ mysql_sescmd_t *mysql_sescmd_init(rses_property_t *rses_prop,
/** Set session command buffer */
sescmd->my_sescmd_buf = sescmd_buf;
sescmd->my_sescmd_packet_type = packet_type;
sescmd->position = atomic_add(&rses->pos_generator, 1);
sescmd->position = atomic_add_uint64(&rses->pos_generator, 1);
sescmd->my_sescmd_is_replied = false;
sescmd->reply_cmd = 0;