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
e40bf3c4
Commit
e40bf3c4
authored
Mar 10, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql/ha_ndbcluster.cc
after merge fix sql/sql_parse.cc correct max_connections condition
parent
3b0e983b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+3
-3
sql/sql_parse.cc
sql/sql_parse.cc
+2
-2
No files found.
sql/ha_ndbcluster.cc
View file @
e40bf3c4
...
...
@@ -416,9 +416,9 @@ void ha_ndbcluster::invalidateDictionaryCache()
NDBDICT
*
dict
=
get_ndb
()
->
getDictionary
();
DBUG_PRINT
(
"info"
,
(
"invalidating %s"
,
m_tabname
));
dict
->
invalidateTable
(
m_tabname
);
table
->
version
=
0L
;
/* Free when thread is ready */
table
->
s
->
version
=
0L
;
/* Free when thread is ready */
/* Invalidate indexes */
for
(
uint
i
=
0
;
i
<
table
->
keys
;
i
++
)
for
(
uint
i
=
0
;
i
<
table
->
s
->
keys
;
i
++
)
{
NDBINDEX
*
index
=
(
NDBINDEX
*
)
m_index
[
i
].
index
;
NDBINDEX
*
unique_index
=
(
NDBINDEX
*
)
m_index
[
i
].
unique_index
;
...
...
@@ -428,7 +428,7 @@ void ha_ndbcluster::invalidateDictionaryCache()
case
(
PRIMARY_KEY_ORDERED_INDEX
):
case
(
ORDERED_INDEX
):
dict
->
invalidateIndex
(
index
->
getName
(),
m_tabname
);
break
;
break
;
case
(
UNIQUE_ORDERED_INDEX
):
dict
->
invalidateIndex
(
index
->
getName
(),
m_tabname
);
case
(
UNIQUE_INDEX
):
...
...
sql/sql_parse.cc
View file @
e40bf3c4
...
...
@@ -355,11 +355,11 @@ int check_user(THD *thd, enum enum_server_command command,
if
(
check_count
)
{
VOID
(
pthread_mutex_lock
(
&
LOCK_thread_count
));
bool
count_ok
=
thread_count
<
max_connections
+
delayed_insert_threads
bool
count_ok
=
thread_count
<
=
max_connections
+
delayed_insert_threads
||
(
thd
->
master_access
&
SUPER_ACL
);
VOID
(
pthread_mutex_unlock
(
&
LOCK_thread_count
));
if
(
!
count_ok
)
{
// too many connections
{
// too many connections
net_send_error
(
thd
,
ER_CON_COUNT_ERROR
);
DBUG_RETURN
(
-
1
);
}
...
...
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