basho / riak_cs

Riak CS is simple, available cloud storage built on Riak.
http://docs.basho.com/riakcs/latest/
Apache License 2.0
566 stars 95 forks source link

multibackend does not pass backend-specific config settings through to individual backends. #195

Closed kellymclaughlin closed 12 years ago

slfritchie commented 12 years ago

Works for me, I'm closing. If it's still a problem, then please re-create with a Riak app.config file that demonstrates the break.

I've instrumented the start() func for each back-end used here:

    {storage_backend, riak_cs_kv_multi_backend},
    {multi_backend_prefix_list, [{<<"0b:">>, be_blocks}]},
    {multi_backend_default, be_blocks},
    {multi_backend, [
       % format: {name, module, [Configs]}
       {be_blocks, riak_kv_yessir_backend, [
            {foo, bar}, baz,
         {data_root, "DATADIR/bitcask"}
      ]},
       {be_eleveldb, riak_kv_eleveldb_backend, [
            {foo1, bar1}, baz1,

{max_open_files, 2000000000000}, %SLF {data_root, "/tmp/eleveldb"} ]} ]},

... and I see my backends do this:

[....]
17:15:33.963 [info] Part 1278813932664540053428224228626747642198940975104 Options [{foo,bar},baz,{data_root,"DATADIR/bitcask"}]
17:15:33.964 [info] Part 1278813932664540053428224228626747642198940975104 Options [{foo1,bar1},baz1,{max_open_files,2000000000000},{data_root,"/tmp/eleveldb"}]