Blame SOURCES/0021-Ticket-48940-DS-logs-have-warning-ancestorid-not-ind.patch

7c7f29
From 9cffd76c95e679042861881182ab8567915b4ad8 Mon Sep 17 00:00:00 2001
7c7f29
From: Noriko Hosoi <nhosoi@redhat.com>
7c7f29
Date: Wed, 27 Jul 2016 14:37:13 -0700
7c7f29
Subject: [PATCH 21/29] Ticket #48940 - DS logs have warning:ancestorid not
7c7f29
 indexed
7c7f29
7c7f29
Description: When reindexing, the subtree to be reindexed is empty,
7c7f29
a cryptic warning message is logged in the error log:
7c7f29
  warning: ancestorid not indexed on 10; possibly, the entry id ##
7c7f29
  has no descendants yet.
7c7f29
This message is benign and not to be logged as DEBUG_ANY/FATAL.
7c7f29
7c7f29
The message is logged when the log level is set to BACKLDBM = 0x080000
7c7f29
  # vlvindex -Z test -n userRoot -T testIndex -d 524288
7c7f29
as follows:
7c7f29
  Info: Entry id ### has no descendants according to ancestorid. Index
7c7f29
  file created by this reindex will be empty.
7c7f29
7c7f29
https://fedorahosted.org/389/ticket/48940
7c7f29
7c7f29
Reviewed by wibrown@redhat.com (Thank you, William!!)
7c7f29
7c7f29
(cherry picked from commit 17dc978c84e6099e4abe884a535067147b618c37)
7c7f29
---
7c7f29
 ldap/servers/slapd/back-ldbm/ldif2ldbm.c | 9 ++++-----
7c7f29
 1 file changed, 4 insertions(+), 5 deletions(-)
7c7f29
7c7f29
diff --git a/ldap/servers/slapd/back-ldbm/ldif2ldbm.c b/ldap/servers/slapd/back-ldbm/ldif2ldbm.c
7c7f29
index 52338c2..5898361 100644
7c7f29
--- a/ldap/servers/slapd/back-ldbm/ldif2ldbm.c
7c7f29
+++ b/ldap/servers/slapd/back-ldbm/ldif2ldbm.c
7c7f29
@@ -903,11 +903,10 @@ static IDList *ldbm_fetch_subtrees(backend *be, char **include, int *err)
7c7f29
         slapi_sdn_done(&sdn;;
7c7f29
         if (idl == NULL) {
7c7f29
             if (DB_NOTFOUND == *err) {
7c7f29
-                LDAPDebug(LDAP_DEBUG_ANY,
7c7f29
-                    "warning: %s not indexed on %lu; "
7c7f29
-                    "possibly, the entry id %lu has no descendants yet.\n",
7c7f29
-                    entryrdn_get_noancestorid()?"entryrdn":"ancestorid",
7c7f29
-                    id, id);
7c7f29
+                LDAPDebug2Args(LDAP_DEBUG_BACKLDBM, 
7c7f29
+                    "Info: Entry id %lu has no descendants according to %s. "
7c7f29
+                    "Index file created by this reindex will be empty.\n",
7c7f29
+                    id, entryrdn_get_noancestorid()?"entryrdn":"ancestorid");
7c7f29
                 *err = 0; /* not a problem */
7c7f29
             } else {
7c7f29
                 LDAPDebug(LDAP_DEBUG_ANY,
7c7f29
-- 
7c7f29
2.4.11
7c7f29