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
4a662df9
Commit
4a662df9
authored
Nov 01, 2017
by
Eugene Kosov
Committed by
Aleksey Midenkov
Nov 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IB: do not use long and ullong types [#306]
parent
ba80eeb5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
12 deletions
+10
-12
storage/innobase/dict/dict0load.cc
storage/innobase/dict/dict0load.cc
+4
-4
storage/innobase/handler/i_s.cc
storage/innobase/handler/i_s.cc
+4
-4
storage/innobase/include/univ.i
storage/innobase/include/univ.i
+0
-2
storage/innobase/row/row0ins.cc
storage/innobase/row/row0ins.cc
+1
-1
storage/innobase/vers/vers0vtq.cc
storage/innobase/vers/vers0vtq.cc
+1
-1
No files found.
storage/innobase/dict/dict0load.cc
View file @
4a662df9
...
...
@@ -867,8 +867,8 @@ vtq_record_t& out /*!< out: field values */
field
=
rec_get_nth_field_old
(
rec
,
(
nfld
=
DICT_FLD__SYS_VTQ__BEGIN_TS
),
&
len
);
if
(
len
!=
sizeof
(
u
llong
))
return
dict_print_error
(
heap
,
nfld
,
len
,
sizeof
(
u
llong
));
if
(
len
!=
sizeof
(
u
int64_t
))
return
dict_print_error
(
heap
,
nfld
,
len
,
sizeof
(
u
int64_t
));
out
.
begin_ts
.
tv_sec
=
mach_read_from_4
(
field
);
out
.
begin_ts
.
tv_usec
=
mach_read_from_4
(
field
+
4
);
...
...
@@ -876,8 +876,8 @@ vtq_record_t& out /*!< out: field values */
field
=
rec_get_nth_field_old
(
rec
,
(
nfld
=
DICT_FLD__SYS_VTQ__COMMIT_TS
),
&
len
);
if
(
len
!=
sizeof
(
u
llong
))
return
dict_print_error
(
heap
,
nfld
,
len
,
sizeof
(
u
llong
));
if
(
len
!=
sizeof
(
u
int64_t
))
return
dict_print_error
(
heap
,
nfld
,
len
,
sizeof
(
u
int64_t
));
out
.
commit_ts
.
tv_sec
=
mach_read_from_4
(
field
);
out
.
commit_ts
.
tv_usec
=
mach_read_from_4
(
field
+
4
);
...
...
storage/innobase/handler/i_s.cc
View file @
4a662df9
...
...
@@ -354,10 +354,10 @@ Auxiliary function to store ulint value in MYSQL_TYPE_LONGLONG field.
If the value is UINT64_UNDEFINED then the field it set to NULL.
@return 0 on success */
int
field_store_u
llong
(
field_store_u
int64_t
(
/*==============*/
Field
*
field
,
/*!< in/out: target field for storage */
u
llong
n
)
/*!< in: value to store */
u
int64_t
n
)
/*!< in: value to store */
{
int
ret
;
...
...
@@ -9734,8 +9734,8 @@ i_s_dict_fill_vtq(
iso_level
=
i_s_isolation_name
(
vtq
.
iso_level
);
OK
(
field_store_u
llong
(
fields
[
SYS_VTQ_TRX_ID
],
vtq
.
trx_id
));
OK
(
field_store_u
llong
(
fields
[
SYS_VTQ_COMMIT_ID
],
vtq
.
commit_id
));
OK
(
field_store_u
int64_t
(
fields
[
SYS_VTQ_TRX_ID
],
vtq
.
trx_id
));
OK
(
field_store_u
int64_t
(
fields
[
SYS_VTQ_COMMIT_ID
],
vtq
.
commit_id
));
OK
(
field_store_timeval
(
fields
[
SYS_VTQ_BEGIN_TS
],
vtq
.
begin_ts
,
thd
));
OK
(
field_store_timeval
(
fields
[
SYS_VTQ_COMMIT_TS
],
vtq
.
commit_ts
,
thd
));
OK
(
field_store_string
(
fields
[
SYS_VTQ_ISO_LEVEL
],
iso_level
));
...
...
storage/innobase/include/univ.i
View file @
4a662df9
...
...
@@ -454,8 +454,6 @@ typedef uint32_t ib_uint32_t;
#
define
UINT64PF
"%"
UINT64scan
#
define
IB_ID_FMT
UINT64PF
typedef
ib_uint64_t
ullong
;
/** Log sequence number (also used for redo log byte arithmetics) */
typedef
ib_uint64_t
lsn_t
;
...
...
storage/innobase/row/row0ins.cc
View file @
4a662df9
...
...
@@ -4056,7 +4056,7 @@ void vers_notify_vtq(trx_t* trx)
dtuple_t
*
tuple
=
dtuple_create
(
heap
,
dict_table_get_n_cols
(
dict_sys
->
sys_vtq
));
timeval
begin_ts
,
commit_ts
;
begin_ts
.
tv_sec
=
static_cast
<
long
>
(
trx
->
start_time
);
begin_ts
.
tv_sec
=
static_cast
<
my_time_t
>
(
trx
->
start_time
);
begin_ts
.
tv_usec
=
trx
->
start_time_micro
%
1000000
;
mutex_enter
(
&
trx_sys
->
mutex
);
...
...
storage/innobase/vers/vers0vtq.cc
View file @
4a662df9
...
...
@@ -174,7 +174,7 @@ void rec_get_timeval(const rec_t* rec, ulint nfield, timeval& out)
field
=
rec_get_nth_field_old
(
rec
,
nfield
,
&
len
);
ut_ad
(
len
==
sizeof
(
u
llong
));
ut_ad
(
len
==
sizeof
(
u
int64_t
));
out
.
tv_sec
=
mach_read_from_4
(
field
);
out
.
tv_usec
=
mach_read_from_4
(
field
+
4
);
...
...
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