disk cache: move path creation back to constructor
authorTapani Pälli <tapani.palli@intel.com>
Fri, 9 Feb 2018 05:37:49 +0000 (07:37 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Fri, 9 Feb 2018 09:33:25 +0000 (11:33 +0200)
commit41c5bf38369c9d57695a0544b8a19d68eef6da3d
tree34b3993c8fdbba31017da67ba38afa9eaad7fce1
parent3a2bb4db23e4ac742363c2bd4769a77b4291231d
disk cache: move path creation back to constructor

This patch moves disk cache path and index creation back to the
constructor which matches previous behavior. We still allow create
to succeed without path so that cache can be used with callback
functionality.

Fixes: c95d3ed091 "disk cache: create cache even if path creation fails"
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/util/disk_cache.c