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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
23f80a6f
Commit
23f80a6f
authored
Sep 27, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Merge 1862:1894 from trunk, except 1866.
parent
20008e0e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
16 deletions
+21
-16
CMakeLists.txt
CMakeLists.txt
+9
-7
dict/dict0dict.c
dict/dict0dict.c
+4
-0
dict/dict0mem.c
dict/dict0mem.c
+1
-1
handler/ha_innodb.cc
handler/ha_innodb.cc
+3
-3
row/row0mysql.c
row/row0mysql.c
+2
-0
ut/ut0ut.c
ut/ut0ut.c
+2
-5
No files found.
CMakeLists.txt
View file @
23f80a6f
...
...
@@ -15,18 +15,16 @@
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX"
)
ADD_DEFINITIONS
(
-DMYSQL_SERVER -D_WIN32 -DWIN32 -D_LIB
)
IF
(
EMBEDDED_ONLY
)
ADD_DEFINITIONS
(
-DUSE_TLS
)
ENDIF
(
EMBEDDED_ONLY
)
ADD_DEFINITIONS
(
-DMYSQL_SERVER -D_WIN32 -D_LIB
)
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
${
CMAKE_SOURCE_DIR
}
/zlib
include
handler
${
CMAKE_SOURCE_DIR
}
/storage/innobase/
include
${
CMAKE_SOURCE_DIR
}
/storage/innobase/
handler
${
CMAKE_SOURCE_DIR
}
/sql
${
CMAKE_SOURCE_DIR
}
/regex
${
CMAKE_SOURCE_DIR
}
/extra/yassl/include
)
ADD_LIBRARY
(
innobase btr/btr0btr.c btr/btr0cur.c btr/btr0pcur.c btr/btr0sea.c
SET
(
INNOBASE_SOURCES btr/btr0btr.c btr/btr0cur.c btr/btr0pcur.c btr/btr0sea.c
buf/buf0buf.c buf/buf0flu.c buf/buf0lru.c buf/buf0rea.c
data/data0data.c data/data0type.c
dict/dict0boot.c dict/dict0crea.c dict/dict0dict.c dict/dict0load.c dict/dict0mem.c
...
...
@@ -57,3 +55,7 @@ ADD_LIBRARY(innobase btr/btr0btr.c btr/btr0cur.c btr/btr0pcur.c btr/btr0sea.c
trx/trx0purge.c trx/trx0rec.c trx/trx0roll.c trx/trx0rseg.c trx/trx0sys.c trx/trx0trx.c trx/trx0undo.c
usr/usr0sess.c
ut/ut0byte.c ut/ut0dbg.c ut/ut0mem.c ut/ut0rnd.c ut/ut0ut.c ut/ut0vec.c ut/ut0list.c ut/ut0wqueue.c
)
IF
(
NOT SOURCE_SUBLIBS
)
ADD_LIBRARY
(
innobase
${
INNOBASE_SOURCES
}
)
ENDIF
(
NOT SOURCE_SUBLIBS
)
dict/dict0dict.c
View file @
23f80a6f
...
...
@@ -378,6 +378,8 @@ dict_table_autoinc_initialize(
dict_table_t
*
table
,
/* in/out: table */
ib_longlong
value
)
/* in: next value to assign to a row */
{
ut_ad
(
mutex_own
(
&
table
->
autoinc_mutex
));
table
->
autoinc_inited
=
TRUE
;
table
->
autoinc
=
value
;
}
...
...
@@ -394,6 +396,8 @@ dict_table_autoinc_read(
{
ib_longlong
value
;
ut_ad
(
mutex_own
(
&
table
->
autoinc_mutex
));
if
(
!
table
->
autoinc_inited
)
{
value
=
0
;
...
...
dict/dict0mem.c
View file @
23f80a6f
...
...
@@ -174,7 +174,7 @@ dict_mem_table_add_col(
col
=
dict_table_get_nth_col
(
table
,
i
);
col
->
ind
=
i
;
col
->
ind
=
(
unsigned
int
)
i
;
col
->
ord_part
=
0
;
col
->
mtype
=
(
unsigned
int
)
mtype
;
...
...
handler/ha_innodb.cc
View file @
23f80a6f
...
...
@@ -5852,7 +5852,7 @@ ha_innobase::info(
table
->
key_info
[
i
].
rec_per_key
[
j
]
=
rec_per_key
>=
~
(
ulong
)
0
?
~
(
ulong
)
0
:
rec_per_key
;
(
ulong
)
rec_per_key
;
}
index
=
dict_table_get_next_index
(
index
);
...
...
@@ -7318,7 +7318,7 @@ ha_innobase::innobase_get_auto_increment(
/*=====================================*/
ulonglong
*
value
)
/* out: autoinc value */
{
ul
int
error
;
ul
ong
error
;
*
value
=
0
;
...
...
@@ -7428,7 +7428,7 @@ ha_innobase::get_auto_increment(
/* Called for the first time ? */
if
(
trx
->
n_autoinc_rows
==
0
)
{
trx
->
n_autoinc_rows
=
nb_desired_values
;
trx
->
n_autoinc_rows
=
(
ulint
)
nb_desired_values
;
/* It's possible for nb_desired_values to be 0:
e.g., INSERT INTO T1(C) SELECT C FROM T2; */
...
...
row/row0mysql.c
View file @
23f80a6f
...
...
@@ -3020,7 +3020,9 @@ next_rec:
/* MySQL calls ha_innobase::reset_auto_increment() which does
the same thing. */
dict_table_autoinc_lock
(
table
);
dict_table_autoinc_initialize
(
table
,
0
);
dict_table_autoinc_unlock
(
table
);
dict_update_statistics
(
table
);
trx_commit_for_mysql
(
trx
);
...
...
ut/ut0ut.c
View file @
23f80a6f
...
...
@@ -537,15 +537,12 @@ ut_snprintf(
va_start
(
ap2
,
fmt
);
res
=
_vscprintf
(
fmt
,
ap1
);
if
(
res
==
-
1
)
{
return
(
-
1
);
}
ut_a
(
res
!=
-
1
);
if
(
size
>
0
)
{
_vsnprintf
(
str
,
size
,
fmt
,
ap2
);
if
((
size_t
)
res
>=
size
)
{
if
((
size_t
)
res
>=
size
)
{
str
[
size
-
1
]
=
'\0'
;
}
}
...
...
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