commit 22f6beb0dae033aa1e023e1d849d5cede058e002 from: Stefan Sperling date: Tue Nov 08 11:40:12 2022 UTC add dedicated compilation flag for the delta cache, separate from object cache commit - 0fc5e2291f12e5d2a36b4c850747157fcc365682 commit + 22f6beb0dae033aa1e023e1d849d5cede058e002 blob - 2b72df1a3c9e149cff31460ae7090698a3416a61 blob + f604d6b30be00da4238354c7abb09bd19dc97184 --- Makefile.inc +++ Makefile.inc @@ -1,6 +1,7 @@ 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 - 70ace572f447749d8c902a1519092c82e736e41a blob + 7040864a05c512e8185f1db76e4230360addabfe --- lib/delta_cache.c +++ lib/delta_cache.c @@ -126,7 +126,7 @@ delta_cache_hash(struct got_delta_cache *cache, off_t 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) { @@ -191,7 +191,7 @@ const struct got_error * 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;