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
022b835c
Commit
022b835c
authored
Nov 06, 2007
by
mskold/marty@mysql.com/quadfish.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed compiler warnings
parent
4cf742a8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+6
-7
No files found.
sql/ha_ndbcluster.cc
View file @
022b835c
...
...
@@ -4901,7 +4901,7 @@ int ha_ndbcluster::drop_table()
ulonglong
ha_ndbcluster
::
get_auto_increment
()
{
int
cache_size
;
u
int
cache_size
;
Uint64
auto_value
;
THD
*
thd
=
current_thd
;
Uint64
step
=
thd
->
variables
.
auto_increment_increment
;
...
...
@@ -4915,13 +4915,12 @@ ulonglong ha_ndbcluster::get_auto_increment()
/* We guessed too low */
m_rows_to_insert
+=
m_autoincrement_prefetch
;
}
int
remaining
=
m_rows_to_insert
-
m_rows_inserted
;
int
min_prefetch
=
u
int
remaining
=
m_rows_to_insert
-
m_rows_inserted
;
u
int
min_prefetch
=
(
remaining
<
thd
->
variables
.
ndb_autoincrement_prefetch_sz
)
?
thd
->
variables
.
ndb_autoincrement_prefetch_sz
:
remaining
;
cache_size
=
(
int
)
((
remaining
<
m_autoincrement_prefetch
)
?
cache_size
=
((
remaining
<
m_autoincrement_prefetch
)
?
min_prefetch
:
remaining
);
uint
retries
=
NDB_AUTO_INCREMENT_RETRIES
;
...
...
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