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
14fa759b
Commit
14fa759b
authored
Apr 10, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#17607
fix correct frag count in Backup block
parent
dc4d3748
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
ndb/src/kernel/blocks/backup/BackupInit.cpp
ndb/src/kernel/blocks/backup/BackupInit.cpp
+4
-5
No files found.
ndb/src/kernel/blocks/backup/BackupInit.cpp
View file @
14fa759b
...
...
@@ -40,12 +40,12 @@ Backup::Backup(const Configuration & conf) :
const
ndb_mgm_configuration_iterator
*
p
=
conf
.
getOwnConfigIterator
();
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
));
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_DICT_TABLE
,
&
noTables
));
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_NO_ATTRIBUTES
,
&
noAttribs
));
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DICT_ATTRIBUTE
,
&
noAttribs
));
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DIH_FRAG_CONNECT
,
&
noFrags
));
noAttribs
++
;
//RT 527 bug fix
...
...
@@ -55,8 +55,7 @@ Backup::Backup(const Configuration & conf) :
c_attributePool
.
setSize
(
noBackups
*
noAttribs
);
c_triggerPool
.
setSize
(
noBackups
*
3
*
noTables
);
// 2 = no of replicas
c_fragmentPool
.
setSize
(
noBackups
*
2
*
NO_OF_FRAG_PER_NODE
*
noTables
);
c_fragmentPool
.
setSize
(
noBackups
*
noFrags
);
Uint32
szMem
=
0
;
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_BACKUP_MEM
,
&
szMem
);
...
...
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