~codership/galera/3.x

« back to all changes in this revision

Viewing changes to gcomm/src/gcomm/conf.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) 2009 Codership Oy <info@codership.com>
 
2
 * Copyright (C) 2009-2014 Codership Oy <info@codership.com>
3
3
 */
4
4
 
5
5
/*!
420
420
         */
421
421
        static std::string const PcWeight;
422
422
 
 
423
        static void register_params(gu::Config&);
423
424
    };
424
425
 
425
426
 
426
427
    // Helper templates to read configuration parameters.
427
428
 
428
 
 
429
429
    template <typename T> T _conf_param(const gu::URI& uri,
430
430
                                        const std::string& param,
431
431
                                        const T* default_value = 0,
502
502
                                               const T& max_value)
503
503
 
504
504
    {
505
 
        return _conf_param(uri, param, &default_value, reinterpret_cast<const T*>(0), &max_value);
 
505
        return _conf_param(uri, param, &default_value,
 
506
                           reinterpret_cast<const T*>(0), &max_value);
506
507
    }
507
508
 
508
509
    template <typename T> T conf_param_def_range(const gu::URI& uri,