commit - 0699dbc20feda4209ace57a148624da7beceb692
commit + b5a8f7447cf93c910aa0933817b85799080ce17d
blob - 2b72df1a3c9e149cff31460ae7090698a3416a61
blob + f604d6b30be00da4238354c7abb09bd19dc97184
--- Makefile.inc
+++ Makefile.inc
CPPFLAGS += -DGOT_LIBEXECDIR=${LIBEXECDIR} -DGOT_VERSION=${GOT_VERSION}
#CFLAGS += -DGOT_PACK_NO_MMAP
#CFLAGS += -DGOT_NO_OBJ_CACHE
+#CFLAGS += -DGOT_NO_DELTA_CACHE
#CFLAGS += -DGOT_OBJ_CACHE_DEBUG
#CFLAGS += -DGOT_DIFF_NO_MMAP
blob - 8d91765140a3e4de9b04a71ccf678e92cfd57abc
blob + 992589e88058863df9f7e4e96234707a1c00b4ac
--- lib/delta_cache.c
+++ lib/delta_cache.c
return SipHash24(&cache->key, &delta_offset, sizeof(delta_offset));
}
-#ifndef GOT_NO_OBJ_CACHE
+#ifndef GOT_NO_DELTA_CACHE
static const struct got_error *
delta_cache_resize(struct got_delta_cache *cache, unsigned int nbuckets)
{
got_delta_cache_add(struct got_delta_cache *cache,
off_t delta_data_offset, uint8_t *delta_data, size_t delta_len)
{
-#ifdef GOT_NO_OBJ_CACHE
+#ifdef GOT_NO_DELTA_CACHE
return got_error(GOT_ERR_NO_SPACE);
#else
const struct got_error *err = NULL;