util/disk_cache: add helpers for creating/destroying disk cache put jobs
authorTimothy Arceri <tarceri@itsqueeze.com>
Sun, 12 Mar 2017 23:14:35 +0000 (10:14 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 15 Mar 2017 00:15:11 +0000 (11:15 +1100)
commitfc5ec64ba3bb0e337127443a85e2a3f23abba34b
tree679c9ab49fd31f4f445e88e7b52bea0472730fd0
parente2c4435b078a1471b044219552873a54b1817bac
util/disk_cache: add helpers for creating/destroying disk cache put jobs

V2: Make a copy of the data so we don't have to worry about it being
freed before we are done compressing/writing.

Reviewed-by: Grazvydas Ignotas <notasas@gmail.com>
src/util/disk_cache.c