From 01c7e801761cff3c58f3de7dd4e08c99da99d7aa Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Thu, 13 Aug 2009 11:17:08 -0400 Subject: Don't go to the backend for identical cache entry requests Currently, if an additional request comes in for a cache entry while that same entry is already in the process of being refreshed, we start a duplicate cache update request. This patch adds allows the cache to maintain a hash table of all in-progress requests and queue up multiple callbacks for updates in progress. Once the data is returned, all of these callbacks will fire. --- server/Makefile.am | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'server/Makefile.am') diff --git a/server/Makefile.am b/server/Makefile.am index 9616a391..8b552558 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -91,6 +91,12 @@ INI_CFG_LIBS = \ -L$(builddir)/../common/ini/.libs/ \ -lini_config +DHASH_CFLAGS = \ + -I$(srcdir)/../common/dhash +DHASH_LIBS = \ + -L$(builddir)/../common/dhash/.libs/ \ + -ldhash + AM_CPPFLAGS = -Wall \ -Iinclude \ -I.. \ @@ -107,7 +113,8 @@ AM_CPPFLAGS = -Wall \ $(PCRE_CFLAGS) \ $(REPLACE_CFLAGS) \ $(COLLECTION_CFLAGS) \ - $(INI_CFG_CFLAGS)\ + $(INI_CFG_CFLAGS) \ + $(DHASH_CFLAGS) \ -DLIBDIR=\"$(libdir)\" \ -DVARDIR=\"$(localstatedir)\" \ -DSHLIBEXT=\"$(SHLIBEXT)\" \ @@ -174,6 +181,7 @@ SSSD_LIBS = \ $(PCRE_LIBS) \ $(INI_CFG_LIBS) \ $(COLLECTION_LIBS) \ + $(DHASH_LIBS) \ $(REPLACE_LIBS) \ $(NSS_LIBS) \ libsss_crypt.la -- cgit