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
75792db8
Commit
75792db8
authored
Apr 10, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/51-work
into perch.ndb.mysql.com:/home/jonas/src/51-jonas
parents
64c8342f
e0f3118a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
8 deletions
+19
-8
storage/ndb/src/kernel/blocks/backup/BackupInit.cpp
storage/ndb/src/kernel/blocks/backup/BackupInit.cpp
+3
-4
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
+6
-1
storage/ndb/src/ndbapi/NdbLinHash.hpp
storage/ndb/src/ndbapi/NdbLinHash.hpp
+10
-3
No files found.
storage/ndb/src/kernel/blocks/backup/BackupInit.cpp
View file @
75792db8
...
@@ -143,12 +143,13 @@ Backup::execREAD_CONFIG_REQ(Signal* signal)
...
@@ -143,12 +143,13 @@ Backup::execREAD_CONFIG_REQ(Signal* signal)
m_ctx
.
m_config
.
getOwnConfigIterator
();
m_ctx
.
m_config
.
getOwnConfigIterator
();
ndbrequire
(
p
!=
0
);
ndbrequire
(
p
!=
0
);
Uint32
noBackups
=
0
,
noTables
=
0
,
noAttribs
=
0
;
Uint32
noBackups
=
0
,
noTables
=
0
,
noAttribs
=
0
,
noFrags
=
0
;
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_DISCLESS
,
&
m_diskless
));
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_DISCLESS
,
&
m_diskless
));
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_PARALLEL_BACKUPS
,
&
noBackups
);
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_PARALLEL_BACKUPS
,
&
noBackups
);
// ndbrequire(!ndb_mgm_get_int_parameter(p, CFG_DB_NO_TABLES, &noTables));
// ndbrequire(!ndb_mgm_get_int_parameter(p, CFG_DB_NO_TABLES, &noTables));
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DICT_TABLE
,
&
noTables
));
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DICT_TABLE
,
&
noTables
));
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_NO_ATTRIBUTES
,
&
noAttribs
));
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_NO_ATTRIBUTES
,
&
noAttribs
));
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DIH_FRAG_CONNECT
,
&
noFrags
));
noAttribs
++
;
//RT 527 bug fix
noAttribs
++
;
//RT 527 bug fix
...
@@ -158,9 +159,7 @@ Backup::execREAD_CONFIG_REQ(Signal* signal)
...
@@ -158,9 +159,7 @@ Backup::execREAD_CONFIG_REQ(Signal* signal)
c_tablePool
.
setSize
(
noBackups
*
noTables
+
1
);
c_tablePool
.
setSize
(
noBackups
*
noTables
+
1
);
c_attributePool
.
setSize
(
noBackups
*
noAttribs
+
MAX_ATTRIBUTES_IN_TABLE
);
c_attributePool
.
setSize
(
noBackups
*
noAttribs
+
MAX_ATTRIBUTES_IN_TABLE
);
c_triggerPool
.
setSize
(
noBackups
*
3
*
noTables
);
c_triggerPool
.
setSize
(
noBackups
*
3
*
noTables
);
c_fragmentPool
.
setSize
(
noBackups
*
noFrags
+
1
);
// 2 = no of replicas
c_fragmentPool
.
setSize
(
noBackups
*
NO_OF_FRAG_PER_NODE
*
noTables
+
1
);
Uint32
szDataBuf
=
(
2
*
1024
*
1024
);
Uint32
szDataBuf
=
(
2
*
1024
*
1024
);
Uint32
szLogBuf
=
(
2
*
1024
*
1024
);
Uint32
szLogBuf
=
(
2
*
1024
*
1024
);
...
...
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
View file @
75792db8
...
@@ -1789,9 +1789,14 @@ NdbDictInterface::getTable(const BaseString& name, bool fullyQualifiedNames)
...
@@ -1789,9 +1789,14 @@ NdbDictInterface::getTable(const BaseString& name, bool fullyQualifiedNames)
// Copy name to m_buffer to get a word sized buffer
// Copy name to m_buffer to get a word sized buffer
m_buffer
.
clear
();
m_buffer
.
clear
();
m_buffer
.
grow
(
namelen_words
*
4
);
m_buffer
.
grow
(
namelen_words
*
4
+
4
);
m_buffer
.
append
(
name
.
c_str
(),
namelen
);
m_buffer
.
append
(
name
.
c_str
(),
namelen
);
#ifndef IGNORE_VALGRIND_WARNINGS
Uint32
pad
=
0
;
m_buffer
.
append
(
&
pad
,
4
);
#endif
LinearSectionPtr
ptr
[
1
];
LinearSectionPtr
ptr
[
1
];
ptr
[
0
].
p
=
(
Uint32
*
)
m_buffer
.
get_data
();
ptr
[
0
].
p
=
(
Uint32
*
)
m_buffer
.
get_data
();
ptr
[
0
].
sz
=
namelen_words
;
ptr
[
0
].
sz
=
namelen_words
;
...
...
storage/ndb/src/ndbapi/NdbLinHash.hpp
View file @
75792db8
...
@@ -427,19 +427,26 @@ NdbLinHash<C>::getNext(NdbElement_t<C> * curr){
...
@@ -427,19 +427,26 @@ NdbLinHash<C>::getNext(NdbElement_t<C> * curr){
return
curr
->
next
;
return
curr
->
next
;
int
dir
=
0
,
seg
=
0
;
int
dir
=
0
,
seg
=
0
;
int
counts
;
if
(
curr
!=
0
){
if
(
curr
!=
0
)
{
getBucket
(
curr
->
hash
,
&
dir
,
&
seg
);
getBucket
(
curr
->
hash
,
&
dir
,
&
seg
);
counts
=
seg
+
1
;
}
else
{
counts
=
0
;
}
}
for
(
int
countd
=
dir
;
countd
<
DIRECTORYSIZE
;
countd
++
){
for
(
int
countd
=
dir
;
countd
<
DIRECTORYSIZE
;
countd
++
){
if
(
directory
[
countd
]
!=
0
)
{
if
(
directory
[
countd
]
!=
0
)
{
for
(
int
counts
=
seg
+
1
;
counts
<
SEGMENTSIZE
;
counts
++
){
for
(;
counts
<
SEGMENTSIZE
;
counts
++
){
if
(
directory
[
countd
]
->
elements
[
counts
]
!=
0
)
{
if
(
directory
[
countd
]
->
elements
[
counts
]
!=
0
)
{
return
directory
[
countd
]
->
elements
[
counts
];
return
directory
[
countd
]
->
elements
[
counts
];
}
}
}
}
}
}
counts
=
0
;
}
}
return
0
;
return
0
;
...
...
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