summaryrefslogtreecommitdiff
path: root/ndb/include/util/ConfigValues.hpp
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2004-08-05 16:21:33 +0200
committerunknown <joreland@mysql.com>2004-08-05 16:21:33 +0200
commit73770db3f524426ca006f1038021c0e64fc5c5d0 (patch)
tree1372a44505734d50c1465a4519e5f3e98c97bea4 /ndb/include/util/ConfigValues.hpp
parent1479ed3f5aaa0bfd1413a867952857695712786b (diff)
downloadmariadb-git-73770db3f524426ca006f1038021c0e64fc5c5d0.tar.gz
Initial support for updating configuration "on the fly"
Only updates values mgmsrv's on main memory to be used in test prg's ndb/include/mgmapi/mgmapi_debug.h: Update on config ndb/include/util/ConfigValues.hpp: Update on config ndb/src/mgmapi/mgmapi.cpp: Update on config ndb/src/mgmsrv/MgmtSrvr.cpp: Update on config ndb/src/mgmsrv/MgmtSrvr.hpp: Update on config ndb/src/mgmsrv/Services.cpp: Update on config ndb/src/mgmsrv/Services.hpp: Update on config
Diffstat (limited to 'ndb/include/util/ConfigValues.hpp')
-rw-r--r--ndb/include/util/ConfigValues.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ndb/include/util/ConfigValues.hpp b/ndb/include/util/ConfigValues.hpp
index 3fbeedb25a0..457488e3c42 100644
--- a/ndb/include/util/ConfigValues.hpp
+++ b/ndb/include/util/ConfigValues.hpp
@@ -32,9 +32,8 @@ public:
class ConstIterator {
friend class ConfigValuesFactory;
const ConfigValues & m_cfg;
- protected:
- Uint32 m_currentSection;
public:
+ Uint32 m_currentSection;
ConstIterator(const ConfigValues&c) : m_cfg(c) { m_currentSection = 0;}
bool openSection(Uint32 key, Uint32 no);
@@ -57,6 +56,9 @@ public:
ConfigValues & m_cfg;
public:
Iterator(ConfigValues&c) : ConstIterator(c), m_cfg(c) {}
+ Iterator(ConfigValues&c, const ConstIterator& i):ConstIterator(c),m_cfg(c){
+ m_currentSection = i.m_currentSection;
+ }
bool set(Uint32 key, Uint32 value);
bool set(Uint32 key, Uint64 value);