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
01755b6e
Commit
01755b6e
authored
Jun 14, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
parents
61abd6e8
fcc8da4d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+2
-0
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.cc
+1
-0
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
+12
-4
No files found.
sql/ha_ndbcluster.cc
View file @
01755b6e
...
@@ -5848,6 +5848,7 @@ int ndbcluster_drop_database_impl(const char *path)
...
@@ -5848,6 +5848,7 @@ int ndbcluster_drop_database_impl(const char *path)
while
((
tabname
=
it
++
))
while
((
tabname
=
it
++
))
{
{
tablename_to_filename
(
tabname
,
tmp
,
FN_REFLEN
-
(
tmp
-
full_path
)
-
1
);
tablename_to_filename
(
tabname
,
tmp
,
FN_REFLEN
-
(
tmp
-
full_path
)
-
1
);
VOID
(
pthread_mutex_lock
(
&
LOCK_open
));
if
(
ha_ndbcluster
::
delete_table
(
0
,
ndb
,
full_path
,
dbname
,
tabname
))
if
(
ha_ndbcluster
::
delete_table
(
0
,
ndb
,
full_path
,
dbname
,
tabname
))
{
{
const
NdbError
err
=
dict
->
getNdbError
();
const
NdbError
err
=
dict
->
getNdbError
();
...
@@ -5857,6 +5858,7 @@ int ndbcluster_drop_database_impl(const char *path)
...
@@ -5857,6 +5858,7 @@ int ndbcluster_drop_database_impl(const char *path)
ret
=
ndb_to_mysql_error
(
&
err
);
ret
=
ndb_to_mysql_error
(
&
err
);
}
}
}
}
VOID
(
pthread_mutex_unlock
(
&
LOCK_open
));
}
}
DBUG_RETURN
(
ret
);
DBUG_RETURN
(
ret
);
}
}
...
...
sql/ha_ndbcluster_binlog.cc
View file @
01755b6e
...
@@ -286,6 +286,7 @@ ndbcluster_binlog_open_table(THD *thd, NDB_SHARE *share,
...
@@ -286,6 +286,7 @@ ndbcluster_binlog_open_table(THD *thd, NDB_SHARE *share,
int
error
;
int
error
;
DBUG_ENTER
(
"ndbcluster_binlog_open_table"
);
DBUG_ENTER
(
"ndbcluster_binlog_open_table"
);
safe_mutex_assert_owner
(
&
LOCK_open
);
init_tmp_table_share
(
table_share
,
share
->
db
,
0
,
share
->
table_name
,
init_tmp_table_share
(
table_share
,
share
->
db
,
0
,
share
->
table_name
,
share
->
key
);
share
->
key
);
if
((
error
=
open_table_def
(
thd
,
table_share
,
0
)))
if
((
error
=
open_table_def
(
thd
,
table_share
,
0
)))
...
...
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
View file @
01755b6e
...
@@ -79,7 +79,8 @@ NdbEventOperationImpl::NdbEventOperationImpl(NdbEventOperation &f,
...
@@ -79,7 +79,8 @@ NdbEventOperationImpl::NdbEventOperationImpl(NdbEventOperation &f,
NdbEventOperation
(
*
this
),
NdbEventOperation
(
*
this
),
m_facade
(
&
f
),
m_facade
(
&
f
),
m_ndb
(
theNdb
),
m_ndb
(
theNdb
),
m_state
(
EO_ERROR
)
m_state
(
EO_ERROR
),
m_oid
(
~
(
Uint32
)
0
)
{
{
DBUG_ENTER
(
"NdbEventOperationImpl::NdbEventOperationImpl"
);
DBUG_ENTER
(
"NdbEventOperationImpl::NdbEventOperationImpl"
);
...
@@ -88,7 +89,11 @@ NdbEventOperationImpl::NdbEventOperationImpl(NdbEventOperation &f,
...
@@ -88,7 +89,11 @@ NdbEventOperationImpl::NdbEventOperationImpl(NdbEventOperation &f,
assert
(
myDict
!=
NULL
);
assert
(
myDict
!=
NULL
);
const
NdbDictionary
::
Event
*
myEvnt
=
myDict
->
getEvent
(
eventName
);
const
NdbDictionary
::
Event
*
myEvnt
=
myDict
->
getEvent
(
eventName
);
if
(
!
myEvnt
)
{
m_error
.
code
=
myDict
->
getNdbError
().
code
;
DBUG_VOID_RETURN
;
}
if
(
!
myEvnt
)
{
m_error
.
code
=
myDict
->
getNdbError
().
code
;
DBUG_VOID_RETURN
;
}
init
(
myEvnt
->
m_impl
);
init
(
myEvnt
->
m_impl
);
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
...
@@ -99,7 +104,8 @@ NdbEventOperationImpl::NdbEventOperationImpl(Ndb *theNdb,
...
@@ -99,7 +104,8 @@ NdbEventOperationImpl::NdbEventOperationImpl(Ndb *theNdb,
NdbEventOperation
(
*
this
),
NdbEventOperation
(
*
this
),
m_facade
(
this
),
m_facade
(
this
),
m_ndb
(
theNdb
),
m_ndb
(
theNdb
),
m_state
(
EO_ERROR
)
m_state
(
EO_ERROR
),
m_oid
(
~
(
Uint32
)
0
)
{
{
DBUG_ENTER
(
"NdbEventOperationImpl::NdbEventOperationImpl [evnt]"
);
DBUG_ENTER
(
"NdbEventOperationImpl::NdbEventOperationImpl [evnt]"
);
init
(
evnt
);
init
(
evnt
);
...
@@ -113,7 +119,6 @@ NdbEventOperationImpl::init(NdbEventImpl& evnt)
...
@@ -113,7 +119,6 @@ NdbEventOperationImpl::init(NdbEventImpl& evnt)
m_magic_number
=
0
;
m_magic_number
=
0
;
mi_type
=
0
;
mi_type
=
0
;
m_oid
=
~
(
Uint32
)
0
;
m_change_mask
=
0
;
m_change_mask
=
0
;
#ifdef VM_TRACE
#ifdef VM_TRACE
m_data_done_count
=
0
;
m_data_done_count
=
0
;
...
@@ -173,6 +178,9 @@ NdbEventOperationImpl::~NdbEventOperationImpl()
...
@@ -173,6 +178,9 @@ NdbEventOperationImpl::~NdbEventOperationImpl()
DBUG_ENTER
(
"NdbEventOperationImpl::~NdbEventOperationImpl"
);
DBUG_ENTER
(
"NdbEventOperationImpl::~NdbEventOperationImpl"
);
m_magic_number
=
0
;
m_magic_number
=
0
;
if
(
m_oid
==
~
(
Uint32
)
0
)
DBUG_VOID_RETURN
;
stop
();
stop
();
// m_bufferHandle->dropSubscribeEvent(m_bufferId);
// m_bufferHandle->dropSubscribeEvent(m_bufferId);
;
// ToDo? We should send stop signal here
;
// ToDo? We should send stop signal here
...
...
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