From 189eb8a0b6cf876e6bc39d0cb8cb4c08b29c9ce1 Mon Sep 17 00:00:00 2001 From: Noriko Hosoi Date: Sep 22 2014 21:19:35 +0000 Subject: Ticket 47750 - Entry cache part 2 Description: One line fix in the previous patch. entrycache_add_int is supposed to return 1 instead of -1 for the "entry already exists in cache" case. --- diff --git a/ldap/servers/slapd/back-ldbm/cache.c b/ldap/servers/slapd/back-ldbm/cache.c index 202386e..13064d0 100644 --- a/ldap/servers/slapd/back-ldbm/cache.c +++ b/ldap/servers/slapd/back-ldbm/cache.c @@ -1352,7 +1352,7 @@ entrycache_add_int(struct cache *cache, struct backentry *e, int state, LOG("the entry %s already exists. returning existing entry %s (state: 0x%x)\n", ndn, backentry_get_ndn(my_alt), state); cache_unlock(cache); - return -1; + return 1; } else { LOG("the entry %s already exists. Not returning existing entry %s (state: 0x%x)\n", ndn, backentry_get_ndn(my_alt), state);