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
27772bd7
Commit
27772bd7
authored
Mar 25, 2014
by
Kentoku SHIBA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
partition auto increment init
parent
004ea517
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
storage/spider/ha_spider.cc
storage/spider/ha_spider.cc
+21
-1
storage/spider/ha_spider.h
storage/spider/ha_spider.h
+6
-0
No files found.
storage/spider/ha_spider.cc
View file @
27772bd7
...
...
@@ -8002,6 +8002,9 @@ int ha_spider::info(
DBUG_ENTER
(
"ha_spider::info"
);
DBUG_PRINT
(
"info"
,(
"spider this=%p"
,
this
));
DBUG_PRINT
(
"info"
,(
"spider flag=%x"
,
flag
));
#ifdef HANDLER_HAS_CAN_USE_FOR_AUTO_INC_INIT
auto_inc_temporary
=
FALSE
;
#endif
sql_command
=
thd_sql_command
(
thd
);
if
(
sql_command
==
SQLCOM_DROP_TABLE
||
...
...
@@ -8012,8 +8015,12 @@ int ha_spider::info(
{
if
(
share
->
auto_increment_value
)
stats
.
auto_increment_value
=
share
->
auto_increment_value
;
else
else
{
stats
.
auto_increment_value
=
1
;
#ifdef HANDLER_HAS_CAN_USE_FOR_AUTO_INC_INIT
auto_inc_temporary
=
TRUE
;
#endif
}
}
DBUG_RETURN
(
0
);
}
...
...
@@ -8796,6 +8803,19 @@ bool ha_spider::need_info_for_auto_inc()
}
#endif
#ifdef HANDLER_HAS_CAN_USE_FOR_AUTO_INC_INIT
bool
ha_spider
::
can_use_for_auto_inc_init
()
{
DBUG_ENTER
(
"ha_spider::can_use_for_auto_inc_init"
);
DBUG_PRINT
(
"info"
,(
"spider this=%p"
,
this
));
DBUG_PRINT
(
"info"
,(
"spider return=%s"
,
(
!
auto_inc_temporary
)
?
"TRUE"
:
"FALSE"
));
DBUG_RETURN
((
!
auto_inc_temporary
));
}
#endif
int
ha_spider
::
update_auto_increment
()
{
...
...
storage/spider/ha_spider.h
View file @
27772bd7
...
...
@@ -172,6 +172,9 @@ class ha_spider: public handler
bool
bulk_insert
;
#ifdef HANDLER_HAS_NEED_INFO_FOR_AUTO_INC
bool
info_auto_called
;
#endif
#ifdef HANDLER_HAS_CAN_USE_FOR_AUTO_INC_INIT
bool
auto_inc_temporary
;
#endif
int
bulk_size
;
int
direct_dup_insert
;
...
...
@@ -510,6 +513,9 @@ class ha_spider: public handler
uint8
table_cache_type
();
#ifdef HANDLER_HAS_NEED_INFO_FOR_AUTO_INC
bool
need_info_for_auto_inc
();
#endif
#ifdef HANDLER_HAS_CAN_USE_FOR_AUTO_INC_INIT
bool
can_use_for_auto_inc_init
();
#endif
int
update_auto_increment
();
void
get_auto_increment
(
...
...
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