Merge pull request #401 from basho/maybe_bug/rdb/full-conf-path

I was getting an {error, enoent} on riak_test setup
This commit is contained in:
Jared Morrow 2013-10-05 13:44:56 -07:00
commit d4dc7fd7c5

View File

@ -266,7 +266,7 @@ get_backend(AppConfig) ->
Files =[ Filename || Filename <- string:tokens(ConfigFileOutputLine, "\s"),
".config" == filename:extension(Filename) ],
hd(Files)
io_lib:format("~s/dev/dev~s/~s", [Path, N, tl(hd(Files))])
end,
{ok, [Config]} = file:consult(ConfigFile),
kvc:path('riak_kv.storage_backend', Config).