~codership/galera/3.x

« back to all changes in this revision

Viewing changes to gcache/src/test.cpp

  • 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
 
21
21
    log_debug << "DEBUG output enabled";
22
22
 
23
23
    if (argc > 1) fname.assign(argv[1]); // take supplied file name if any
24
 
    gu::Config conf("gcache.name = test.cache; gcache.size = 16K");
 
24
    gu::Config conf;
 
25
    GCache::register_params(conf);
 
26
    conf.parse("gcache.name = test.cache; gcache.size = 16K");
25
27
    GCache* cache = new GCache (conf, "");
26
28
 
27
29
    log_info  << "";