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
3dfeae0e
Commit
3dfeae0e
authored
Nov 25, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Fix Intel compiler warnings about sign conversions
parent
4a22056c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
storage/innobase/btr/btr0cur.cc
storage/innobase/btr/btr0cur.cc
+2
-2
storage/innobase/include/rw_lock.h
storage/innobase/include/rw_lock.h
+2
-2
storage/innobase/page/page0cur.cc
storage/innobase/page/page0cur.cc
+1
-1
storage/innobase/row/row0merge.cc
storage/innobase/row/row0merge.cc
+2
-2
storage/innobase/trx/trx0rec.cc
storage/innobase/trx/trx0rec.cc
+1
-1
No files found.
storage/innobase/btr/btr0cur.cc
View file @
3dfeae0e
...
...
@@ -4158,7 +4158,7 @@ void btr_cur_upd_rec_in_place(rec_t *rec, const dict_index_t *index,
}
ulint
l
=
rec_get_1byte_offs_flag
(
rec
)
?
(
n
+
1
)
:
(
n
+
1
)
*
2
;
byte
*
b
=
&
rec
[
-
REC_N_OLD_EXTRA_BYTES
-
l
]
;
byte
*
b
=
rec
-
REC_N_OLD_EXTRA_BYTES
-
l
;
compile_time_assert
(
REC_1BYTE_SQL_NULL_MASK
<<
8
==
REC_2BYTE_SQL_NULL_MASK
);
mtr
->
write
<
1
>
(
*
block
,
b
,
...
...
@@ -4181,7 +4181,7 @@ void btr_cur_upd_rec_in_place(rec_t *rec, const dict_index_t *index,
ut_ad
(
len
==
rec_get_nth_field_size
(
rec
,
n
));
ulint
l
=
rec_get_1byte_offs_flag
(
rec
)
?
(
n
+
1
)
:
(
n
+
1
)
*
2
;
byte
*
b
=
&
rec
[
-
REC_N_OLD_EXTRA_BYTES
-
l
]
;
byte
*
b
=
rec
-
REC_N_OLD_EXTRA_BYTES
-
l
;
compile_time_assert
(
REC_1BYTE_SQL_NULL_MASK
<<
8
==
REC_2BYTE_SQL_NULL_MASK
);
mtr
->
write
<
1
>
(
*
block
,
b
,
...
...
storage/innobase/include/rw_lock.h
View file @
3dfeae0e
...
...
@@ -30,9 +30,9 @@ class rw_lock
/** Available lock */
static
constexpr
uint32_t
UNLOCKED
=
0
;
/** Flag to indicate that write_lock() is being held */
static
constexpr
uint32_t
WRITER
=
1
<<
31
;
static
constexpr
uint32_t
WRITER
=
1
U
<<
31
;
/** Flag to indicate that write_lock_wait() is pending */
static
constexpr
uint32_t
WRITER_WAITING
=
1
<<
30
;
static
constexpr
uint32_t
WRITER_WAITING
=
1
U
<<
30
;
/** Flag to indicate that write_lock() or write_lock_wait() is pending */
static
constexpr
uint32_t
WRITER_PENDING
=
WRITER
|
WRITER_WAITING
;
...
...
storage/innobase/page/page0cur.cc
View file @
3dfeae0e
...
...
@@ -2683,7 +2683,7 @@ bool page_apply_insert_dynamic(const buf_block_t &block, bool reuse,
data_len
-=
enc_hdr_l
>>
3
;
data
=
&
static_cast
<
const
byte
*>
(
data
)[
enc_hdr_l
>>
3
];
memcpy
(
buf
,
&
prev_rec
[
-
REC_N_NEW_EXTRA_BYTES
-
hdr_c
]
,
hdr_c
);
memcpy
(
buf
,
prev_rec
-
REC_N_NEW_EXTRA_BYTES
-
hdr_c
,
hdr_c
);
buf
+=
hdr_c
;
*
buf
++=
static_cast
<
byte
>
((
enc_hdr_l
&
3
)
<<
4
);
/* info_bits; n_owned=0 */
*
buf
++=
static_cast
<
byte
>
(
h
>>
5
);
/* MSB of heap number */
...
...
storage/innobase/row/row0merge.cc
View file @
3dfeae0e
...
...
@@ -1820,8 +1820,8 @@ row_merge_read_clustered_index(
based on that. */
clust_index
=
dict_table_get_first_index
(
old_table
);
const
ulint
old_trx_id_col
=
DATA_TRX_ID
-
DATA_N_SYS_COLS
+
ulint
(
old_table
->
n_cols
);
const
ulint
old_trx_id_col
=
ulint
(
old_table
->
n_cols
)
-
(
DATA_N_SYS_COLS
-
DATA_TRX_ID
);
ut_ad
(
old_table
->
cols
[
old_trx_id_col
].
mtype
==
DATA_SYS
);
ut_ad
(
old_table
->
cols
[
old_trx_id_col
].
prtype
==
(
DATA_TRX_ID
|
DATA_NOT_NULL
));
...
...
storage/innobase/trx/trx0rec.cc
View file @
3dfeae0e
...
...
@@ -2455,7 +2455,7 @@ trx_undo_prev_version_build(
==
rec_get_nth_field_size
(
rec
,
n
));
ulint
l
=
rec_get_1byte_offs_flag
(
*
old_vers
)
?
(
n
+
1
)
:
(
n
+
1
)
*
2
;
(
*
old_vers
)[
-
REC_N_OLD_EXTRA_BYTES
-
l
]
*
(
*
old_vers
-
REC_N_OLD_EXTRA_BYTES
-
l
)
&=
byte
(
~
REC_1BYTE_SQL_NULL_MASK
);
}
}
...
...
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