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
e0f32133
Commit
e0f32133
authored
Jun 12, 2007
by
tomas@whalegate.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-telco-gca
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
parents
c11806db
2606bb1c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
0 deletions
+61
-0
storage/ndb/include/mgmapi/mgmapi_config_parameters.h
storage/ndb/include/mgmapi/mgmapi_config_parameters.h
+2
-0
storage/ndb/src/kernel/blocks/backup/Backup.cpp
storage/ndb/src/kernel/blocks/backup/Backup.cpp
+35
-0
storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp
storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp
+1
-0
storage/ndb/src/kernel/blocks/dbtup/DbtupGen.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupGen.cpp
+6
-0
storage/ndb/src/kernel/blocks/dbtup/DbtupPageMap.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupPageMap.cpp
+5
-0
storage/ndb/src/mgmsrv/ConfigInfo.cpp
storage/ndb/src/mgmsrv/ConfigInfo.cpp
+12
-0
No files found.
storage/ndb/include/mgmapi/mgmapi_config_parameters.h
View file @
e0f32133
...
...
@@ -118,6 +118,8 @@
#define CFG_DB_O_DIRECT 168
#define CFG_DB_MAX_ALLOCATE 169
#define CFG_DB_SGA 198
/* super pool mem */
#define CFG_DB_DATA_MEM_2 199
/* used in special build in 5.1 */
...
...
storage/ndb/src/kernel/blocks/backup/Backup.cpp
View file @
e0f32133
...
...
@@ -448,6 +448,41 @@ Backup::execDUMP_STATE_ORD(Signal* signal)
filePtr
.
p
->
m_flags
);
}
}
ndbout_c
(
"m_curr_disk_write_speed: %u m_words_written_this_period: %u m_overflow_disk_write: %u"
,
m_curr_disk_write_speed
,
m_words_written_this_period
,
m_overflow_disk_write
);
ndbout_c
(
"m_reset_delay_used: %u m_reset_disk_speed_time: %llu"
,
m_reset_delay_used
,
(
Uint64
)
m_reset_disk_speed_time
);
for
(
c_backups
.
first
(
ptr
);
ptr
.
i
!=
RNIL
;
c_backups
.
next
(
ptr
))
{
ndbout_c
(
"BackupRecord %u: BackupId: %u MasterRef: %x ClientRef: %x"
,
ptr
.
i
,
ptr
.
p
->
backupId
,
ptr
.
p
->
masterRef
,
ptr
.
p
->
clientRef
);
ndbout_c
(
" State: %u"
,
ptr
.
p
->
slaveState
.
getState
());
ndbout_c
(
" noOfByte: %llu noOfRecords: %llu"
,
ptr
.
p
->
noOfBytes
,
ptr
.
p
->
noOfRecords
);
ndbout_c
(
" noOfLogBytes: %llu noOfLogRecords: %llu"
,
ptr
.
p
->
noOfLogBytes
,
ptr
.
p
->
noOfLogRecords
);
ndbout_c
(
" errorCode: %u"
,
ptr
.
p
->
errorCode
);
BackupFilePtr
filePtr
;
for
(
ptr
.
p
->
files
.
first
(
filePtr
);
filePtr
.
i
!=
RNIL
;
ptr
.
p
->
files
.
next
(
filePtr
))
{
ndbout_c
(
" file %u: type: %u flags: H'%x tableId: %u fragmentId: %u"
,
filePtr
.
i
,
filePtr
.
p
->
fileType
,
filePtr
.
p
->
m_flags
,
filePtr
.
p
->
tableId
,
filePtr
.
p
->
fragmentNo
);
}
if
(
ptr
.
p
->
slaveState
.
getState
()
==
SCANNING
&&
ptr
.
p
->
dataFilePtr
!=
RNIL
)
{
c_backupFilePool
.
getPtr
(
filePtr
,
ptr
.
p
->
dataFilePtr
);
OperationRecord
&
op
=
filePtr
.
p
->
operation
;
Uint32
*
tmp
=
NULL
;
Uint32
sz
=
0
;
bool
eof
=
FALSE
;
bool
ready
=
op
.
dataBuffer
.
getReadPtr
(
&
tmp
,
&
sz
,
&
eof
);
ndbout_c
(
"ready: %s eof: %s"
,
ready
?
"TRUE"
:
"FALSE"
,
eof
?
"TRUE"
:
"FALSE"
);
}
}
return
;
}
if
(
signal
->
theData
[
0
]
==
24
){
/**
...
...
storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp
View file @
e0f32133
...
...
@@ -2700,6 +2700,7 @@ private:
ArrayPool
<
Page
>
c_page_pool
;
Uint32
cnoOfAllocatedPages
;
Uint32
m_max_allocate_pages
;
Tablerec
*
tablerec
;
Uint32
cnoOfTablerec
;
...
...
storage/ndb/src/kernel/blocks/dbtup/DbtupGen.cpp
View file @
e0f32133
...
...
@@ -305,6 +305,12 @@ void Dbtup::execREAD_CONFIG_REQ(Signal* signal)
Uint32
noOfTriggers
=
0
;
Uint32
tmp
=
0
;
if
(
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_MAX_ALLOCATE
,
&
tmp
))
tmp
=
32
*
1024
*
1024
;
m_max_allocate_pages
=
(
tmp
+
GLOBAL_PAGE_SIZE
-
1
)
/
GLOBAL_PAGE_SIZE
;
tmp
=
0
;
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_TUP_PAGE_RANGE
,
&
tmp
));
initPageRangeSize
(
tmp
);
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_TUP_TABLE
,
&
cnoOfTablerec
));
...
...
storage/ndb/src/kernel/blocks/dbtup/DbtupPageMap.cpp
View file @
e0f32133
...
...
@@ -432,6 +432,11 @@ void Dbtup::allocMoreFragPages(Fragrecord* const regFragPtr)
// We will grow by 18.75% plus two more additional pages to grow
// a little bit quicker in the beginning.
/* -----------------------------------------------------------------*/
if
(
noAllocPages
>
m_max_allocate_pages
)
{
noAllocPages
=
m_max_allocate_pages
;
}
Uint32
allocated
=
allocFragPages
(
regFragPtr
,
noAllocPages
);
regFragPtr
->
noOfPagesToGrow
+=
allocated
;
}
//Dbtup::allocMoreFragPages()
...
...
storage/ndb/src/mgmsrv/ConfigInfo.cpp
View file @
e0f32133
...
...
@@ -1321,6 +1321,18 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
"0"
,
STR_VALUE
(
MAX_INT_RNIL
)
},
{
CFG_DB_MAX_ALLOCATE
,
"MaxAllocate"
,
DB_TOKEN
,
"Maximum size of allocation to use when allocating memory for tables"
,
ConfigInfo
::
CI_USED
,
false
,
ConfigInfo
::
CI_INT
,
"32M"
,
"1M"
,
"1G"
},
{
CFG_DB_MEMREPORT_FREQUENCY
,
"MemReportFrequency"
,
...
...
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