~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/xid.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 01:03:01 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090913010301-tcvvezipx1124acy
Added calls to the dtrace delete begin/end probes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
 
20
#include <drizzled/global.h>
21
21
#include <string.h>
22
22
 
23
 
#include <drizzled/my_hash.h>
 
23
#include <mysys/hash.h>
24
24
#include <drizzled/xid.h>
25
 
#include "drizzled/internal/my_pthread.h"
26
 
#include "drizzled/charset.h"
27
 
#include "drizzled/global_charset_info.h"
28
 
#include "drizzled/charset_info.h"
29
25
 
30
 
namespace drizzled
31
 
{
 
26
XID::XID()
 
27
{}
32
28
 
33
29
bool XID::eq(XID *xid)
34
30
{
118
114
pthread_mutex_t LOCK_xid_cache;
119
115
HASH xid_cache;
120
116
 
121
 
unsigned char *xid_get_hash_key(const unsigned char *, size_t *, bool);
122
 
void xid_free_hash(void *);
 
117
extern "C" unsigned char *xid_get_hash_key(const unsigned char *, size_t *, bool);
 
118
extern "C" void xid_free_hash(void *);
123
119
 
124
120
unsigned char *xid_get_hash_key(const unsigned char *ptr, size_t *length,
125
121
                        bool )
193
189
  hash_delete(&xid_cache, (unsigned char *)xid_state);
194
190
  pthread_mutex_unlock(&LOCK_xid_cache);
195
191
}
196
 
 
197
 
} /* namespace drizzled */