Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a45e6d2b
Commit
a45e6d2b
authored
May 25, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Adjust some function comments after r5091.
parent
e49dee37
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
51 additions
and
50 deletions
+51
-50
dict/dict0load.c
dict/dict0load.c
+6
-6
handler/ha_innodb.cc
handler/ha_innodb.cc
+25
-21
handler/win_delay_loader.cc
handler/win_delay_loader.cc
+1
-1
ibuf/ibuf0ibuf.c
ibuf/ibuf0ibuf.c
+1
-1
include/buf0buf.h
include/buf0buf.h
+1
-1
include/ha0storage.h
include/ha0storage.h
+2
-3
include/ha0storage.ic
include/ha0storage.ic
+2
-3
include/mem0dbg.ic
include/mem0dbg.ic
+1
-1
include/pars0pars.h
include/pars0pars.h
+1
-1
include/trx0trx.h
include/trx0trx.h
+2
-2
include/ut0lst.h
include/ut0lst.h
+1
-2
mem/mem0dbg.c
mem/mem0dbg.c
+1
-1
pars/lexyy.c
pars/lexyy.c
+3
-3
pars/pars0lex.l
pars/pars0lex.l
+3
-3
pars/pars0pars.c
pars/pars0pars.c
+1
-1
No files found.
dict/dict0load.c
View file @
a45e6d2b
...
@@ -41,15 +41,15 @@ Created 4/24/1996 Heikki Tuuri
...
@@ -41,15 +41,15 @@ Created 4/24/1996 Heikki Tuuri
#include "srv0srv.h"
#include "srv0srv.h"
/********************************************************************
/********************************************************************
Returns TRUE if index's i'th column's name is 'name'
.
Compare the name of an index column
.
@return */
@return
TRUE if the i'th column of index is 'name'.
*/
static
static
ibool
ibool
name_of_col_is
(
name_of_col_is
(
/*===========*/
/*===========*/
dict_table_t
*
table
,
/*!< in: table */
const
dict_table_t
*
table
,
/*!< in: table */
dict_index_t
*
index
,
/*!< in: index */
const
dict_index_t
*
index
,
/*!< in: index */
ulint
i
,
/*!< in:
*/
ulint
i
,
/*!< in: index field offset
*/
const
char
*
name
)
/*!< in: name to compare to */
const
char
*
name
)
/*!< in: name to compare to */
{
{
ulint
tmp
=
dict_col_get_no
(
dict_field_get_col
(
ulint
tmp
=
dict_col_get_no
(
dict_field_get_col
(
...
...
handler/ha_innodb.cc
View file @
a45e6d2b
...
@@ -294,26 +294,28 @@ static handler *innobase_create_handler(handlerton *hton,
...
@@ -294,26 +294,28 @@ static handler *innobase_create_handler(handlerton *hton,
}
}
/***********************************************************************
/***********************************************************************
This function is used to prepare
X/Open XA distributed transaction
This function is used to prepare
an X/Open XA distributed transaction.
@return 0 or error number */
@return 0 or error number */
static
static
int
int
innobase_xa_prepare
(
innobase_xa_prepare
(
/*================*/
/*================*/
handlerton
*
hton
,
handlerton
*
hton
,
/*!< in: InnoDB handlerton */
THD
*
thd
,
/*!< in: handle to the MySQL thread of the user
THD
*
thd
,
/*!< in: handle to the MySQL thread of
whose XA transaction should be prepared */
the user whose XA transaction should
be prepared */
bool
all
);
/*!< in: TRUE - commit transaction
bool
all
);
/*!< in: TRUE - commit transaction
FALSE - the current SQL statement ended */
FALSE - the current SQL statement
ended */
/***********************************************************************
/***********************************************************************
This function is used to recover X/Open XA distributed transactions
This function is used to recover X/Open XA distributed transactions
.
@return number of prepared transactions stored in xid_list */
@return number of prepared transactions stored in xid_list */
static
static
int
int
innobase_xa_recover
(
innobase_xa_recover
(
/*================*/
/*================*/
handlerton
*
hton
,
handlerton
*
hton
,
/*!< in: InnoDB handlerton */
XID
*
xid_list
,
/*!< in/out: prepared transactions */
XID
*
xid_list
,
/*!< in/out: prepared transactions */
uint
len
);
/*!< in: number of slots in xid_list */
uint
len
);
/*!< in: number of slots in xid_list */
/***********************************************************************
/***********************************************************************
This function is used to commit one X/Open XA distributed transaction
This function is used to commit one X/Open XA distributed transaction
...
@@ -4128,7 +4130,7 @@ ha_innobase::innobase_reset_autoinc(
...
@@ -4128,7 +4130,7 @@ ha_innobase::innobase_reset_autoinc(
/************************************************************************
/************************************************************************
Store the autoinc value in the table. The autoinc value is only set if
Store the autoinc value in the table. The autoinc value is only set if
it's greater than the existing autoinc value in the table.
it's greater than the existing autoinc value in the table.
@return DB_SUCCES if all went well else error code */
@return DB_SUCCES
S
if all went well else error code */
UNIV_INTERN
UNIV_INTERN
ulint
ulint
ha_innobase
::
innobase_set_max_autoinc
(
ha_innobase
::
innobase_set_max_autoinc
(
...
@@ -8876,17 +8878,19 @@ innobase_get_at_most_n_mbchars(
...
@@ -8876,17 +8878,19 @@ innobase_get_at_most_n_mbchars(
}
}
/***********************************************************************
/***********************************************************************
This function is used to prepare
X/Open XA distributed transaction
This function is used to prepare
an X/Open XA distributed transaction.
@return 0 or error number */
@return 0 or error number */
static
static
int
int
innobase_xa_prepare
(
innobase_xa_prepare
(
/*================*/
/*================*/
handlerton
*
hton
,
handlerton
*
hton
,
/*!< in: InnoDB handlerton */
THD
*
thd
,
/*!< in: handle to the MySQL thread of the user
THD
*
thd
,
/*!< in: handle to the MySQL thread of
whose XA transaction should be prepared */
the user whose XA transaction should
be prepared */
bool
all
)
/*!< in: TRUE - commit transaction
bool
all
)
/*!< in: TRUE - commit transaction
FALSE - the current SQL statement ended */
FALSE - the current SQL statement
ended */
{
{
int
error
=
0
;
int
error
=
0
;
trx_t
*
trx
=
check_trx_exists
(
thd
);
trx_t
*
trx
=
check_trx_exists
(
thd
);
...
@@ -8976,14 +8980,14 @@ innobase_xa_prepare(
...
@@ -8976,14 +8980,14 @@ innobase_xa_prepare(
}
}
/***********************************************************************
/***********************************************************************
This function is used to recover X/Open XA distributed transactions
This function is used to recover X/Open XA distributed transactions
.
@return number of prepared transactions stored in xid_list */
@return number of prepared transactions stored in xid_list */
static
static
int
int
innobase_xa_recover
(
innobase_xa_recover
(
/*================*/
/*================*/
handlerton
*
hton
,
handlerton
*
hton
,
/*!< in: InnoDB handlerton */
XID
*
xid_list
,
/*!< in/out: prepared transactions */
XID
*
xid_list
,
/*!< in/out: prepared transactions */
uint
len
)
/*!< in: number of slots in xid_list */
uint
len
)
/*!< in: number of slots in xid_list */
{
{
DBUG_ASSERT
(
hton
==
innodb_hton_ptr
);
DBUG_ASSERT
(
hton
==
innodb_hton_ptr
);
...
...
handler/win_delay_loader.cc
View file @
a45e6d2b
...
@@ -73,7 +73,7 @@ ulong* wdl_specialflag;
...
@@ -73,7 +73,7 @@ ulong* wdl_specialflag;
int
*
wdl_my_umask
;
int
*
wdl_my_umask
;
/***********************************************************************
/***********************************************************************
The pref
fe
red load-address defined in PE (portable executable format). */
The pref
er
red load-address defined in PE (portable executable format). */
#if defined(_M_IA64)
#if defined(_M_IA64)
#pragma section(".base", long, read)
#pragma section(".base", long, read)
extern
"C"
extern
"C"
...
...
ibuf/ibuf0ibuf.c
View file @
a45e6d2b
...
@@ -1142,7 +1142,7 @@ ibuf_dummy_index_add_col(
...
@@ -1142,7 +1142,7 @@ ibuf_dummy_index_add_col(
}
}
/************************************************************************
/************************************************************************
Deallocates a dummy index for inserting a record to a non-clustered index.
Deallocates a dummy index for inserting a record to a non-clustered index.
*/
*/
static
static
void
void
ibuf_dummy_index_free
(
ibuf_dummy_index_free
(
...
...
include/buf0buf.h
View file @
a45e6d2b
...
@@ -1447,7 +1447,7 @@ FILE_PAGE => NOT_USED NOTE: This transition is allowed if and only if
...
@@ -1447,7 +1447,7 @@ FILE_PAGE => NOT_USED NOTE: This transition is allowed if and only if
(1) buf_fix_count == 0,
(1) buf_fix_count == 0,
(2) oldest_modification == 0, and
(2) oldest_modification == 0, and
(3) io_fix == 0.
(3) io_fix == 0.
*/
*/
#ifndef UNIV_NONINL
#ifndef UNIV_NONINL
#include "buf0buf.ic"
#include "buf0buf.ic"
...
...
include/ha0storage.h
View file @
a45e6d2b
...
@@ -105,13 +105,12 @@ ha_storage_empty(
...
@@ -105,13 +105,12 @@ ha_storage_empty(
/***********************************************************************
/***********************************************************************
Frees a hash storage and everything it contains, it cannot be used after
Frees a hash storage and everything it contains, it cannot be used after
this call.
this call.
This invalidates any pointers previously returned by ha_storage_put().
This invalidates any pointers previously returned by ha_storage_put(). */
*/
UNIV_INLINE
UNIV_INLINE
void
void
ha_storage_free
(
ha_storage_free
(
/*============*/
/*============*/
ha_storage_t
*
storage
);
/*!< in
/out
: hash storage */
ha_storage_t
*
storage
);
/*!< in
, own
: hash storage */
/***********************************************************************
/***********************************************************************
Gets the size of the memory used by a storage.
Gets the size of the memory used by a storage.
...
...
include/ha0storage.ic
View file @
a45e6d2b
...
@@ -111,13 +111,12 @@ ha_storage_empty(
...
@@ -111,13 +111,12 @@ ha_storage_empty(
/***********************************************************************
/***********************************************************************
Frees a hash storage and everything it contains, it cannot be used after
Frees a hash storage and everything it contains, it cannot be used after
this call.
this call.
This invalidates any pointers previously returned by ha_storage_put().
This invalidates any pointers previously returned by ha_storage_put(). */
*/
UNIV_INLINE
UNIV_INLINE
void
void
ha_storage_free(
ha_storage_free(
/*============*/
/*============*/
ha_storage_t* storage) /*!< in
/out
: hash storage */
ha_storage_t* storage) /*!< in
, own
: hash storage */
{
{
/* order is important because the pointer storage->hash is
/* order is important because the pointer storage->hash is
within the heap */
within the heap */
...
...
include/mem0dbg.ic
View file @
a45e6d2b
include/pars0pars.h
View file @
a45e6d2b
...
@@ -470,7 +470,7 @@ UNIV_INTERN
...
@@ -470,7 +470,7 @@ UNIV_INTERN
void
void
pars_info_free
(
pars_info_free
(
/*===========*/
/*===========*/
pars_info_t
*
info
);
/*!< in: info struct */
pars_info_t
*
info
);
/*!< in
, own
: info struct */
/********************************************************************
/********************************************************************
Add bound literal. */
Add bound literal. */
...
...
include/trx0trx.h
View file @
a45e6d2b
...
@@ -398,8 +398,8 @@ trx_is_interrupted(
...
@@ -398,8 +398,8 @@ trx_is_interrupted(
/***********************************************************************
/***********************************************************************
Calculates the "weight" of a transaction. The weight of one transaction
Calculates the "weight" of a transaction. The weight of one transaction
is estimated as the number of altered rows + the number of locked rows.
is estimated as the number of altered rows + the number of locked rows.
*/
@param t transaction
@return transaction weight */
#define TRX_WEIGHT(t) \
#define TRX_WEIGHT(t) \
ut_dulint_add((t)->undo_no, UT_LIST_GET_LEN((t)->trx_locks))
ut_dulint_add((t)->undo_no, UT_LIST_GET_LEN((t)->trx_locks))
...
...
include/ut0lst.h
View file @
a45e6d2b
...
@@ -58,8 +58,7 @@ struct LRU_node_struct {
...
@@ -58,8 +58,7 @@ struct LRU_node_struct {
...
...
}
}
The example implements an LRU list of name LRU_list. Its nodes are of type
The example implements an LRU list of name LRU_list. Its nodes are of type
LRU_node_t.
LRU_node_t. */
*/
#define UT_LIST_NODE_T(TYPE)\
#define UT_LIST_NODE_T(TYPE)\
struct {\
struct {\
...
...
mem/mem0dbg.c
View file @
a45e6d2b
pars/lexyy.c
View file @
a45e6d2b
...
@@ -747,13 +747,13 @@ Linux.
...
@@ -747,13 +747,13 @@ Linux.
static
ulint
stringbuf_len_alloc
=
0
;
/* Allocated length */
static
ulint
stringbuf_len_alloc
=
0
;
/* Allocated length */
static
ulint
stringbuf_len
=
0
;
/* Current length */
static
ulint
stringbuf_len
=
0
;
/* Current length */
static
char
*
stringbuf
;
/* Start of buffer */
static
char
*
stringbuf
;
/* Start of buffer */
/* Appends a string to the buffer. */
/*
*
Appends a string to the buffer. */
static
static
void
void
string_append
(
string_append
(
/*==========*/
/*==========*/
const
char
*
str
,
/* in: string to be appended */
const
char
*
str
,
/*
!<
in: string to be appended */
ulint
len
)
/* in: length of the string */
ulint
len
)
/*
!<
in: length of the string */
{
{
if
(
stringbuf
==
NULL
)
{
if
(
stringbuf
==
NULL
)
{
stringbuf
=
malloc
(
1
);
stringbuf
=
malloc
(
1
);
...
...
pars/pars0lex.l
View file @
a45e6d2b
...
@@ -70,13 +70,13 @@ Created 12/14/1997 Heikki Tuuri
...
@@ -70,13 +70,13 @@ Created 12/14/1997 Heikki Tuuri
static ulint stringbuf_len_alloc = 0; /* Allocated length */
static ulint stringbuf_len_alloc = 0; /* Allocated length */
static ulint stringbuf_len = 0; /* Current length */
static ulint stringbuf_len = 0; /* Current length */
static char* stringbuf; /* Start of buffer */
static char* stringbuf; /* Start of buffer */
/* Appends a string to the buffer. */
/*
*
Appends a string to the buffer. */
static
static
void
void
string_append(
string_append(
/*==========*/
/*==========*/
const char* str, /* in: string to be appended */
const char* str, /*
!<
in: string to be appended */
ulint len) /* in: length of the string */
ulint len) /*
!<
in: length of the string */
{
{
if (stringbuf == NULL) {
if (stringbuf == NULL) {
stringbuf = malloc(1);
stringbuf = malloc(1);
...
...
pars/pars0pars.c
View file @
a45e6d2b
...
@@ -1952,7 +1952,7 @@ UNIV_INTERN
...
@@ -1952,7 +1952,7 @@ UNIV_INTERN
void
void
pars_info_free
(
pars_info_free
(
/*===========*/
/*===========*/
pars_info_t
*
info
)
/*!< in: info struct */
pars_info_t
*
info
)
/*!< in
, own
: info struct */
{
{
mem_heap_free
(
info
->
heap
);
mem_heap_free
(
info
->
heap
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment