~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/ha/ha0storage.c

modified transaction docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 2007, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 2007, 2009, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
35
35
#include "ha0storage.ic"
36
36
#endif
37
37
 
38
 
#include <cassert>
39
 
 
40
38
/*******************************************************************//**
41
39
Retrieves a data from a storage. If it is present, a pointer to the
42
40
stored copy of data is returned, otherwise NULL is returned. */
53
51
 
54
52
        /* avoid repetitive calls to ut_fold_binary() in the HASH_SEARCH
55
53
        macro */
56
 
        fold = ut_fold_binary(static_cast<const unsigned char*>(data), data_len);
 
54
        fold = ut_fold_binary(data, data_len);
57
55
 
58
56
#define IS_FOUND        \
59
57
        node->data_len == data_len && memcmp(node->data, data, data_len) == 0
64
62
                fold,                   /* key */
65
63
                ha_storage_node_t*,     /* type of node->next */
66
64
                node,                   /* auxiliary variable */
67
 
                assert(true),                   /* assertion */
 
65
                ,                       /* assertion */
68
66
                IS_FOUND);              /* search criteria */
69
67
 
70
68
        if (node == NULL) {
130
128
 
131
129
        /* avoid repetitive calls to ut_fold_binary() in the HASH_INSERT
132
130
        macro */
133
 
        fold = ut_fold_binary(static_cast<const unsigned char *>(data), data_len);
 
131
        fold = ut_fold_binary(data, data_len);
134
132
 
135
133
        HASH_INSERT(
136
134
                ha_storage_node_t,      /* type used in the hash chain */