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
4d3ad156
Commit
4d3ad156
authored
Mar 13, 2006
by
knielsen@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc. portability compile fixes.
parent
d39e9204
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
20 deletions
+24
-20
sql/log_event.cc
sql/log_event.cc
+4
-4
sql/sql_class.h
sql/sql_class.h
+1
-0
sql/sql_insert.cc
sql/sql_insert.cc
+17
-14
storage/innobase/btr/btr0sea.c
storage/innobase/btr/btr0sea.c
+2
-2
No files found.
sql/log_event.cc
View file @
4d3ad156
...
@@ -5608,7 +5608,7 @@ void Rows_log_event::pack_info(Protocol *protocol)
...
@@ -5608,7 +5608,7 @@ void Rows_log_event::pack_info(Protocol *protocol)
char
buf
[
256
];
char
buf
[
256
];
char
const
*
const
flagstr
=
char
const
*
const
flagstr
=
get_flags
(
STMT_END_F
)
?
" flags: STMT_END_F"
:
""
;
get_flags
(
STMT_END_F
)
?
" flags: STMT_END_F"
:
""
;
my_size_t
bytes
=
snprintf
(
buf
,
sizeof
(
buf
),
my_size_t
bytes
=
my_
snprintf
(
buf
,
sizeof
(
buf
),
"table_id: %lu%s"
,
m_table_id
,
flagstr
);
"table_id: %lu%s"
,
m_table_id
,
flagstr
);
protocol
->
store
(
buf
,
bytes
,
&
my_charset_bin
);
protocol
->
store
(
buf
,
bytes
,
&
my_charset_bin
);
}
}
...
@@ -6030,7 +6030,7 @@ bool Table_map_log_event::write_data_body(IO_CACHE *file)
...
@@ -6030,7 +6030,7 @@ bool Table_map_log_event::write_data_body(IO_CACHE *file)
void
Table_map_log_event
::
pack_info
(
Protocol
*
protocol
)
void
Table_map_log_event
::
pack_info
(
Protocol
*
protocol
)
{
{
char
buf
[
256
];
char
buf
[
256
];
my_size_t
bytes
=
snprintf
(
buf
,
sizeof
(
buf
),
my_size_t
bytes
=
my_
snprintf
(
buf
,
sizeof
(
buf
),
"table_id: %lu (%s.%s)"
,
"table_id: %lu (%s.%s)"
,
m_table_id
,
m_dbnam
,
m_tblnam
);
m_table_id
,
m_dbnam
,
m_tblnam
);
protocol
->
store
(
buf
,
bytes
,
&
my_charset_bin
);
protocol
->
store
(
buf
,
bytes
,
&
my_charset_bin
);
...
...
sql/sql_class.h
View file @
4d3ad156
...
@@ -1602,6 +1602,7 @@ class select_create: public select_insert {
...
@@ -1602,6 +1602,7 @@ class select_create: public select_insert {
lock
(
0
)
lock
(
0
)
{}
{}
int
prepare
(
List
<
Item
>
&
list
,
SELECT_LEX_UNIT
*
u
);
int
prepare
(
List
<
Item
>
&
list
,
SELECT_LEX_UNIT
*
u
);
friend
class
select_create_prepare_hooks
;
void
binlog_show_create_table
(
TABLE
**
tables
,
uint
count
);
void
binlog_show_create_table
(
TABLE
**
tables
,
uint
count
);
void
store_values
(
List
<
Item
>
&
values
);
void
store_values
(
List
<
Item
>
&
values
);
...
...
sql/sql_insert.cc
View file @
4d3ad156
...
@@ -2498,25 +2498,28 @@ bool select_insert::send_eof()
...
@@ -2498,25 +2498,28 @@ bool select_insert::send_eof()
CREATE TABLE (SELECT) ...
CREATE TABLE (SELECT) ...
***************************************************************************/
***************************************************************************/
int
/* HPUX compiler bug prevents this from being a local class, since then it
select_create
::
prepare
(
List
<
Item
>
&
values
,
SELECT_LEX_UNIT
*
u
)
does not have access to protected member select_create::thd.
{
*/
DBUG_ENTER
(
"select_create::prepare"
);
class
select_create_prepare_hooks
:
public
TABLEOP_HOOKS
{
public:
class
MY_HOOKS
:
public
TABLEOP_HOOKS
{
select_create_prepare_hooks
(
select_create
*
x
)
:
ptr
(
x
)
{
}
public:
MY_HOOKS
(
select_create
*
x
)
:
ptr
(
x
)
{
}
virtual
void
do_prelock
(
TABLE
**
tables
,
uint
count
)
virtual
void
do_prelock
(
TABLE
**
tables
,
uint
count
)
{
{
if
(
ptr
->
thd
->
current_stmt_binlog_row_based
)
if
(
ptr
->
thd
->
current_stmt_binlog_row_based
)
ptr
->
binlog_show_create_table
(
tables
,
count
);
ptr
->
binlog_show_create_table
(
tables
,
count
);
}
}
private:
private:
select_create
*
ptr
;
select_create
*
ptr
;
};
};
int
select_create
::
prepare
(
List
<
Item
>
&
values
,
SELECT_LEX_UNIT
*
u
)
{
DBUG_ENTER
(
"select_create::prepare"
);
MY_HOOKS
hooks
(
this
);
select_create_prepare_hooks
hooks
(
this
);
unit
=
u
;
unit
=
u
;
table
=
create_table_from_items
(
thd
,
create_info
,
create_table
,
table
=
create_table_from_items
(
thd
,
create_info
,
create_table
,
...
...
storage/innobase/btr/btr0sea.c
View file @
4d3ad156
...
@@ -1604,12 +1604,12 @@ btr_search_validate(void)
...
@@ -1604,12 +1604,12 @@ btr_search_validate(void)
mem_heap_t
*
heap
=
NULL
;
mem_heap_t
*
heap
=
NULL
;
ulint
offsets_
[
REC_OFFS_NORMAL_SIZE
];
ulint
offsets_
[
REC_OFFS_NORMAL_SIZE
];
ulint
*
offsets
=
offsets_
;
ulint
*
offsets
=
offsets_
;
*
offsets_
=
(
sizeof
offsets_
)
/
sizeof
*
offsets_
;
/* How many cells to check before temporarily releasing
/* How many cells to check before temporarily releasing
btr_search_latch. */
btr_search_latch. */
ulint
chunk_size
=
10000
;
ulint
chunk_size
=
10000
;
*
offsets_
=
(
sizeof
offsets_
)
/
sizeof
*
offsets_
;
rw_lock_x_lock
(
&
btr_search_latch
);
rw_lock_x_lock
(
&
btr_search_latch
);
cell_count
=
hash_get_n_cells
(
btr_search_sys
->
hash_index
);
cell_count
=
hash_get_n_cells
(
btr_search_sys
->
hash_index
);
...
...
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