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
5c950043
Commit
5c950043
authored
Mar 09, 2006
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/usr/local/home/marty/MySQL/mysql-5.1-new
parents
c824a409
5ebe4f37
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
10 deletions
+19
-10
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+3
-5
storage/ndb/src/kernel/blocks/suma/Suma.cpp
storage/ndb/src/kernel/blocks/suma/Suma.cpp
+11
-2
storage/ndb/src/kernel/blocks/suma/Suma.hpp
storage/ndb/src/kernel/blocks/suma/Suma.hpp
+3
-1
storage/ndb/src/ndbapi/ndberror.c
storage/ndb/src/ndbapi/ndberror.c
+2
-2
No files found.
sql/ha_ndbcluster.cc
View file @
5c950043
...
...
@@ -1319,13 +1319,11 @@ int ha_ndbcluster::drop_indexes(Ndb *ndb, TABLE *tab)
int
error
=
0
;
const
char
*
index_name
;
KEY
*
key_info
=
tab
->
key_info
;
const
char
**
key_name
=
tab
->
s
->
keynames
.
type_names
;
NDBDICT
*
dict
=
ndb
->
getDictionary
();
DBUG_ENTER
(
"ha_ndbcluster::drop_indexes"
);
for
(
i
=
0
;
i
<
tab
->
s
->
keys
;
i
++
,
key_info
++
,
key_name
++
)
for
(
i
=
0
;
i
<
tab
->
s
->
keys
;
i
++
,
key_info
++
)
{
index_name
=
*
key_name
;
NDB_INDEX_TYPE
idx_type
=
get_index_type_from_table
(
i
);
m_index
[
i
].
type
=
idx_type
;
if
(
m_index
[
i
].
status
==
TO_BE_DROPPED
)
...
...
@@ -1346,8 +1344,8 @@ int ha_ndbcluster::drop_indexes(Ndb *ndb, TABLE *tab)
m_index
[
i
].
index
=
NULL
;
if
(
!
error
&&
unique_index
)
{
index_name
=
index
->
getName
();
DBUG_PRINT
(
"info"
,
(
"Dropping index %u: %s"
,
i
,
index_name
));
index_name
=
unique_
index
->
getName
();
DBUG_PRINT
(
"info"
,
(
"Dropping
unique
index %u: %s"
,
i
,
index_name
));
// Drop unique index from ndb
error
=
drop_ndb_index
(
index_name
);
}
...
...
storage/ndb/src/kernel/blocks/suma/Suma.cpp
View file @
5c950043
...
...
@@ -1092,6 +1092,7 @@ Suma::execSUB_CREATE_REQ(Signal* signal)
subPtr
.
p
->
m_table_ptrI
=
RNIL
;
subPtr
.
p
->
m_state
=
Subscription
::
DEFINED
;
subPtr
.
p
->
n_subscribers
=
0
;
subPtr
.
p
->
m_current_sync_ptrI
=
RNIL
;
fprintf
(
stderr
,
"table %d options %x
\n
"
,
subPtr
.
p
->
m_tableId
,
subPtr
.
p
->
m_options
);
DBUG_PRINT
(
"info"
,(
"Added: key.m_subscriptionId: %u, key.m_subscriptionKey: %u"
,
...
...
@@ -1163,13 +1164,15 @@ Suma::execSUB_SYNC_REQ(Signal* signal)
DBUG_PRINT
(
"info"
,(
"c_syncPool size: %d free: %d"
,
c_syncPool
.
getSize
(),
c_syncPool
.
getNoOfFree
()));
new
(
syncPtr
.
p
)
Ptr
<
SyncRecord
>
;
syncPtr
.
p
->
m_senderRef
=
req
->
senderRef
;
syncPtr
.
p
->
m_senderData
=
req
->
senderData
;
syncPtr
.
p
->
m_subscriptionPtrI
=
subPtr
.
i
;
syncPtr
.
p
->
ptrI
=
syncPtr
.
i
;
syncPtr
.
p
->
m_error
=
0
;
subPtr
.
p
->
m_current_sync_ptrI
=
syncPtr
.
i
;
{
jam
();
syncPtr
.
p
->
m_tableList
.
append
(
&
subPtr
.
p
->
m_tableId
,
1
);
...
...
@@ -2059,7 +2062,7 @@ Suma::execSUB_SYNC_CONTINUE_CONF(Signal* signal){
ndbrequire
(
c_subscriptions
.
find
(
subPtr
,
key
));
ScanFragNextReq
*
req
=
(
ScanFragNextReq
*
)
signal
->
getDataPtrSend
();
req
->
senderData
=
subPtr
.
i
;
req
->
senderData
=
subPtr
.
p
->
m_current_sync_ptrI
;
req
->
closeFlag
=
0
;
req
->
transId1
=
0
;
req
->
transId2
=
(
SUMA
<<
20
)
+
(
getOwnNodeId
()
<<
8
);
...
...
@@ -2098,6 +2101,12 @@ Suma::SyncRecord::completeScan(Signal* signal, int error)
#endif
release
();
Ptr
<
Subscription
>
subPtr
;
suma
.
c_subscriptions
.
getPtr
(
subPtr
,
m_subscriptionPtrI
);
ndbrequire
(
subPtr
.
p
->
m_current_sync_ptrI
==
ptrI
);
subPtr
.
p
->
m_current_sync_ptrI
=
RNIL
;
suma
.
c_syncPool
.
release
(
ptrI
);
DBUG_PRINT
(
"info"
,(
"c_syncPool size: %d free: %d"
,
suma
.
c_syncPool
.
getSize
(),
...
...
storage/ndb/src/kernel/blocks/suma/Suma.hpp
View file @
5c950043
...
...
@@ -189,6 +189,7 @@ public:
*/
Uint32
m_tableId
;
Uint32
m_table_ptrI
;
Uint32
m_current_sync_ptrI
;
};
typedef
Ptr
<
Subscription
>
SubscriptionPtr
;
...
...
@@ -239,7 +240,8 @@ public:
suma
.
progError
(
line
,
cause
,
extra
);
}
union
{
Uint32
nextPool
;
Uint32
nextList
;
Uint32
prevList
;
Uint32
ptrI
;
};
Uint32
prevList
;
Uint32
ptrI
;
union
{
Uint32
nextPool
;
Uint32
nextList
;
};
};
friend
struct
SyncRecord
;
...
...
storage/ndb/src/ndbapi/ndberror.c
View file @
5c950043
...
...
@@ -112,7 +112,7 @@ ErrorBundle ErrorCodes[] = {
{
630
,
HA_ERR_FOUND_DUPP_KEY
,
CV
,
"Tuple already existed when attempting to insert"
},
{
839
,
DMEC
,
CV
,
"Illegal null attribute"
},
{
840
,
DMEC
,
CV
,
"Trying to set a NOT NULL attribute to NULL"
},
{
893
,
HA_ERR_FOUND_DUPP_
KEY
,
CV
,
"Constraint violation e.g. duplicate value in unique index"
},
{
893
,
HA_ERR_FOUND_DUPP_
UNIQUE
,
CV
,
"Constraint violation e.g. duplicate value in unique index"
},
/**
* Node recovery errors
...
...
@@ -577,7 +577,7 @@ ErrorBundle ErrorCodes[] = {
{
4248
,
DMEC
,
AE
,
"Trigger/index name invalid"
},
{
4249
,
DMEC
,
AE
,
"Invalid table"
},
{
4250
,
DMEC
,
AE
,
"Invalid index type or index logging option"
},
{
4251
,
DMEC
,
AE
,
"Cannot create unique index, duplicate keys found"
},
{
4251
,
HA_ERR_FOUND_DUPP_UNIQUE
,
AE
,
"Cannot create unique index, duplicate keys found"
},
{
4252
,
DMEC
,
AE
,
"Failed to allocate space for index"
},
{
4253
,
DMEC
,
AE
,
"Failed to create index table"
},
{
4254
,
DMEC
,
AE
,
"Table not an index table"
},
...
...
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