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
7a057433
Commit
7a057433
authored
Feb 17, 2005
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added mutex lock for "get config"
parent
6e51577b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
ndb/include/transporter/TransporterRegistry.hpp
ndb/include/transporter/TransporterRegistry.hpp
+5
-0
ndb/src/mgmsrv/Services.cpp
ndb/src/mgmsrv/Services.cpp
+2
-0
No files found.
ndb/include/transporter/TransporterRegistry.hpp
View file @
7a057433
...
...
@@ -101,6 +101,11 @@ public:
unsigned
maxTransporters
=
MAX_NTRANSPORTERS
,
unsigned
sizeOfLongSignalMemory
=
100
);
/**
* this handle will be used in the client connect thread
* to fetch information on dynamic ports. The old handle
* id destroyed, and this is destroyed by the destructor
*/
void
set_mgm_handle
(
NdbMgmHandle
h
);
NdbMgmHandle
get_mgm_handle
(
void
)
{
return
m_mgm_handle
;
};
...
...
ndb/src/mgmsrv/Services.cpp
View file @
7a057433
...
...
@@ -572,11 +572,13 @@ MgmApiSession::getConfig_common(Parser_t::Context &,
}
}
NdbMutex_Lock
(
m_mgmsrv
.
m_configMutex
);
const
ConfigValues
*
cfg
=
&
conf
->
m_configValues
->
m_config
;
const
Uint32
size
=
cfg
->
getPackedSize
();
UtilBuffer
src
;
cfg
->
pack
(
src
);
NdbMutex_Unlock
(
m_mgmsrv
.
m_configMutex
);
BaseString
str
;
int
res
=
base64_encode
(
src
,
str
);
...
...
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