~codership/galera/3.x

« back to all changes in this revision

Viewing changes to galera/src/replicator_smm.hpp

  • Committer: Alexey Yurchenko
  • Date: 2014-02-06 19:27:50 UTC
  • mfrom: (153.2.15 2.x)
  • Revision ID: alexey.yurchenko@codership.com-20140206192750-n9to0wtjevl69gok
Tags: release_25.3.3(percona)
References lp:1260193 - all supported parameters are now registered before parsing the initial options string, so unrecognized options can be detected.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
 
// Copyright (C) 2010-2013 Codership Oy <info@codership.com>
 
2
// Copyright (C) 2010-2014 Codership Oy <info@codership.com>
3
3
//
4
4
 
5
5
//! @file replicator_smm.hpp
154
154
        void          desync();
155
155
        void          resync();
156
156
 
 
157
        struct InitConfig
 
158
        {
 
159
            InitConfig(gu::Config&, const char* node_address);
 
160
        };
 
161
 
157
162
    private:
158
163
 
159
164
        ReplicatorSMM(const ReplicatorSMM&);
406
411
        InitLib                init_lib_;
407
412
        gu::Config             config_;
408
413
 
409
 
        struct SetDefaults
 
414
        InitConfig
 
415
            init_config_; // registers configurable parameters and defaults
 
416
 
 
417
        struct ParseOptions
410
418
        {
411
 
            SetDefaults(gu::Config&, const Defaults&, const char* base_addr);
 
419
            ParseOptions(gu::Config&, const char* opts);
412
420
        }
413
 
        set_defaults_; // sets missing parameters to default values
 
421
            parse_options_; // parse oprtion string supplied on initialization
414
422
 
415
423
        static int const       MAX_PROTO_VER;
416
424
        /*