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
b819e8e0
Commit
b819e8e0
authored
Feb 07, 2006
by
lars@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/users/lthalmann/bkroot/mysql-5.1-new
into mysql.com:/users/lthalmann/bk/mysql-5.1-new
parents
caf1fb4b
67835c13
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
18 deletions
+40
-18
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+36
-17
storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
+4
-1
No files found.
sql/ha_ndbcluster.cc
View file @
b819e8e0
...
...
@@ -9618,13 +9618,16 @@ static int ndbcluster_fill_files_table(THD *thd, TABLE_LIST *tables, COND *cond)
NdbDictionary
::
Dictionary
*
dict
=
ndb
->
getDictionary
();
NdbDictionary
::
Dictionary
::
List
dflist
;
NdbError
ndberr
;
unsigned
i
;
DBUG_ENTER
(
"ndbcluster_fill_files_table"
);
dict
->
listObjects
(
dflist
,
NdbDictionary
::
Object
::
Datafile
);
ndberr
=
dict
->
getNdbError
();
if
(
ndberr
.
classification
!=
ndberror_cl_none
)
return
0
;
if
(
ndberr
.
classification
!=
NdbError
::
NoError
)
ERR_RETURN
(
ndberr
)
;
for
(
unsigned
i
=
0
;
i
<
dflist
.
count
;
i
++
)
for
(
i
=
0
;
i
<
dflist
.
count
;
i
++
)
{
NdbDictionary
::
Dictionary
::
List
::
Element
&
elt
=
dflist
.
elements
[
i
];
Ndb_cluster_connection_node_iter
iter
;
...
...
@@ -9632,16 +9635,24 @@ static int ndbcluster_fill_files_table(THD *thd, TABLE_LIST *tables, COND *cond)
g_ndb_cluster_connection
->
init_get_next_node
(
iter
);
while
(
id
=
g_ndb_cluster_connection
->
get_next_node
(
iter
))
while
(
(
id
=
g_ndb_cluster_connection
->
get_next_node
(
iter
)
))
{
NdbDictionary
::
Datafile
df
=
dict
->
getDatafile
(
id
,
elt
.
name
);
ndberr
=
dict
->
getNdbError
();
if
(
ndberr
.
classification
!=
ndberror_cl_none
)
if
(
ndberr
.
classification
!=
NdbError
::
NoError
)
{
if
(
ndberr
.
classification
==
NdbError
::
SchemaError
)
continue
;
ERR_RETURN
(
ndberr
);
}
NdbDictionary
::
Tablespace
ts
=
dict
->
getTablespace
(
df
.
getTablespace
());
ndberr
=
dict
->
getNdbError
();
if
(
ndberr
.
classification
!=
ndberror_cl_none
)
if
(
ndberr
.
classification
!=
NdbError
::
NoError
)
{
if
(
ndberr
.
classification
==
NdbError
::
SchemaError
)
continue
;
ERR_RETURN
(
ndberr
);
}
int
c
=
0
;
table
->
field
[
c
++
]
->
set_null
();
// FILE_ID
...
...
@@ -9706,10 +9717,10 @@ static int ndbcluster_fill_files_table(THD *thd, TABLE_LIST *tables, COND *cond)
dict
->
listObjects
(
dflist
,
NdbDictionary
::
Object
::
Undofile
);
ndberr
=
dict
->
getNdbError
();
if
(
ndberr
.
classification
!=
ndberror_cl_none
)
return
0
;
if
(
ndberr
.
classification
!=
NdbError
::
NoError
)
ERR_RETURN
(
ndberr
)
;
for
(
unsigned
i
=
0
;
i
<
dflist
.
count
;
i
++
)
for
(
i
=
0
;
i
<
dflist
.
count
;
i
++
)
{
NdbDictionary
::
Dictionary
::
List
::
Element
&
elt
=
dflist
.
elements
[
i
];
Ndb_cluster_connection_node_iter
iter
;
...
...
@@ -9717,17 +9728,25 @@ static int ndbcluster_fill_files_table(THD *thd, TABLE_LIST *tables, COND *cond)
g_ndb_cluster_connection
->
init_get_next_node
(
iter
);
while
(
id
=
g_ndb_cluster_connection
->
get_next_node
(
iter
))
while
(
(
id
=
g_ndb_cluster_connection
->
get_next_node
(
iter
)
))
{
NdbDictionary
::
Undofile
uf
=
dict
->
getUndofile
(
id
,
elt
.
name
);
ndberr
=
dict
->
getNdbError
();
if
(
ndberr
.
classification
!=
ndberror_cl_none
)
if
(
ndberr
.
classification
!=
NdbError
::
NoError
)
{
if
(
ndberr
.
classification
==
NdbError
::
SchemaError
)
continue
;
ERR_RETURN
(
ndberr
);
}
NdbDictionary
::
LogfileGroup
lfg
=
dict
->
getLogfileGroup
(
uf
.
getLogfileGroup
());
ndberr
=
dict
->
getNdbError
();
if
(
ndberr
.
classification
!=
ndberror_cl_none
)
if
(
ndberr
.
classification
!=
NdbError
::
NoError
)
{
if
(
ndberr
.
classification
==
NdbError
::
SchemaError
)
continue
;
ERR_RETURN
(
ndberr
);
}
int
c
=
0
;
table
->
field
[
c
++
]
->
set_null
();
// FILE_ID
...
...
@@ -9788,5 +9807,5 @@ static int ndbcluster_fill_files_table(THD *thd, TABLE_LIST *tables, COND *cond)
schema_table_store_record
(
thd
,
table
);
}
}
return
0
;
DBUG_RETURN
(
0
)
;
}
storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
View file @
b819e8e0
...
...
@@ -1114,9 +1114,12 @@ Dbtup::prepare_initial_insert(KeyReqStruct *req_struct,
ptr
=
ALIGN_WORD
(
dst
->
m_data_ptr
+
regTabPtr
->
m_offsets
[
MM
].
m_max_var_offset
);
order
+=
regTabPtr
->
m_attributes
[
MM
].
m_no_of_fixsize
;
Uint32
pos
=
0
;
Uint16
*
pos_ptr
=
req_struct
->
var_pos_array
;
Uint16
*
len_ptr
=
pos_ptr
+
cnt1
;
for
(
Uint32
i
=
0
;
i
<
cnt1
;
i
++
)
{
dst
->
m_offset_array_ptr
[
i
]
=
pos
;
*
pos_ptr
++
=
pos
;
*
len_ptr
++
=
pos
;
pos
+=
AttributeDescriptor
::
getSizeInBytes
(
tab_descr
[
*
order
++
].
tabDescr
);
}
}
...
...
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