c7b052aab3
Addition of CheckSessions debug entry point
2013-09-18 19:06:32 +02:00
e1d7a5640d
Put structure check fields behind SS_DEBUG macros. Thus, they are only included in debug builds.
2013-09-09 10:05:46 +03:00
4c00cdac5e
Cleaned up. Removed unnecessary extern keywords from function declarations so to fit them better to one line.
2013-09-08 23:29:50 +03:00
f74f67540f
Added spinlock protection for the session association to the DCB and
...
reworked the reference count mechanism on the session. Introduced a
FREE state for the session and alter the session destruction flow so
that we only remove the session when all the DCB's have singled they
have finished processing events for the DCB rather than when the first
thread decides to clsoe the DCB.
2013-09-04 12:24:59 +02:00
3d5c40e450
Removed unused macros. Fixed struct member order so that check field is again the last in struct and it detects memory overflows slightly better.
2013-09-02 21:54:24 +03:00
31cda5ad65
Added session refcount in session.h
...
The refcount is incremented in dcb_connect and in mysql_client.c after session_alloc
2013-09-02 10:26:34 +02:00
9a8e271417
client->data is copied to session->data already in session_alloc to ensure that authentication information is set when background connection is started to establish in concurrent thread.
2013-08-28 23:06:09 +03:00
0401290021
Added spinlock ses_lock to struct SESSION to ensure that for each session closeSession is called only once.
...
closeSession is called from mysql_backend.c:gw_read_backend_event, and from dcb.c:dcb_close.
This is part of Bug #163 .
2013-08-22 10:42:18 +03:00
a7c82310f9
moving files to /server to make merge possible
2013-07-28 05:31:11 +00:00