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
edb63759
Commit
edb63759
authored
Jan 13, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compilation warning on windows
parent
2484a2e4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
12 deletions
+8
-12
sql/partition_element.h
sql/partition_element.h
+1
-1
sql/partition_info.cc
sql/partition_info.cc
+1
-1
sql/partition_info.h
sql/partition_info.h
+3
-3
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-1
sql/table.h
sql/table.h
+1
-5
storage/innobase/include/row0mysql.h
storage/innobase/include/row0mysql.h
+1
-1
No files found.
sql/partition_element.h
View file @
edb63759
...
...
@@ -202,7 +202,7 @@ class partition_element :public Sql_alloc
engine_type
(
NULL
),
connect_string
(
null_clex_str
),
part_state
(
PART_NORMAL
),
nodegroup_id
(
UNDEF_NODEGROUP
),
has_null_value
(
FALSE
),
signed_flag
(
FALSE
),
max_value
(
FALSE
),
id
(
UINT
32_MAX
),
id
(
UINT
_MAX32
),
empty
(
true
)
{}
partition_element
(
partition_element
*
part_elem
)
...
...
sql/partition_info.cc
View file @
edb63759
...
...
@@ -1001,7 +1001,7 @@ bool partition_info::vers_setup_expression(THD * thd, uint32 alter_add)
continue
;
}
/* Newly added element is inserted before AS_OF_NOW. */
if
(
el
->
id
==
UINT
32_MAX
||
el
->
type
()
==
partition_element
::
CURRENT
)
if
(
el
->
id
==
UINT
_MAX32
||
el
->
type
()
==
partition_element
::
CURRENT
)
{
DBUG_ASSERT
(
table
&&
table
->
s
);
Vers_min_max_stats
*
stat_trx_end
=
new
(
&
table
->
s
->
mem_root
)
...
...
sql/partition_info.h
View file @
edb63759
...
...
@@ -57,11 +57,11 @@ struct Vers_part_info : public Sql_alloc
{
if
(
now_part
)
{
DBUG_ASSERT
(
now_part
->
id
!=
UINT
32_MAX
);
DBUG_ASSERT
(
now_part
->
id
!=
UINT
_MAX32
);
DBUG_ASSERT
(
now_part
->
type
()
==
partition_element
::
CURRENT
);
DBUG_ASSERT
(
!
fully
||
(
bool
)
hist_part
);
DBUG_ASSERT
(
!
hist_part
||
(
hist_part
->
id
!=
UINT
32_MAX
&&
hist_part
->
id
!=
UINT
_MAX32
&&
hist_part
->
type
()
==
partition_element
::
HISTORY
));
return
true
;
}
...
...
@@ -406,7 +406,7 @@ class partition_info : public Sql_alloc
{
DBUG_ASSERT
(
table
&&
table
->
s
);
DBUG_ASSERT
(
vers_info
&&
vers_info
->
initialized
());
DBUG_ASSERT
(
table
->
s
->
hist_part_id
!=
UINT
32_MAX
);
DBUG_ASSERT
(
table
->
s
->
hist_part_id
!=
UINT
_MAX32
);
if
(
table
->
s
->
hist_part_id
==
vers_info
->
hist_part
->
id
)
return
vers_info
->
hist_part
;
...
...
sql/sql_yacc.yy
View file @
edb63759
...
...
@@ -5500,7 +5500,7 @@ opt_part_values:
else
{
part_info->vers_init_info(thd);
elem->id= UINT
32_MAX
;
elem->id= UINT
_MAX32
;
}
DBUG_ASSERT(part_info->vers_info);
if (part_info->vers_info->now_part)
...
...
sql/table.h
View file @
edb63759
...
...
@@ -583,10 +583,6 @@ enum vers_sys_type_t
VERS_TRX_ID
};
#ifndef UINT32_MAX
#define UINT32_MAX (4294967295U)
#endif
/**
This structure is shared between different table objects. There is one
instance of table share per one table in the database.
...
...
@@ -791,7 +787,7 @@ struct TABLE_SHARE
void
vers_init
()
{
hist_part_id
=
UINT
32_MAX
;
hist_part_id
=
UINT
_MAX32
;
busy_rotation
=
false
;
stat_trx
=
NULL
;
stat_serial
=
0
;
...
...
storage/innobase/include/row0mysql.h
View file @
edb63759
...
...
@@ -869,7 +869,7 @@ struct row_prebuilt_t {
{
ut_ad
(
col
<
n_template
);
ut_ad
(
mysql_template
);
for
(
int
i
=
col
;
i
<
n_template
;
++
i
)
{
for
(
ul
int
i
=
col
;
i
<
n_template
;
++
i
)
{
const
mysql_row_templ_t
*
templ
=
&
mysql_template
[
i
];
if
(
!
templ
->
is_virtual
&&
templ
->
col_no
==
col
)
{
return
templ
;
...
...
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