]> git.sur5r.net Git - openldap/commitdiff
The support for unindexed attributes being tracked in back-monitor needs
authorQuanah Gibson-Mount <quanah@openldap.org>
Tue, 26 Sep 2017 18:04:45 +0000 (11:04 -0700)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 26 Sep 2017 18:04:45 +0000 (11:04 -0700)
to remain behind LDAP_DEVEL for now.  Right now, the mutex in
back-monitor cannot properly handle the load if the server had a lot
of unindexed attributes that were being accessed in search filters.

servers/slapd/back-bdb/back-bdb.h
servers/slapd/back-mdb/back-mdb.h

index 59867df3b5f1421c2cc0c26bcbcf2a93b9eb71a1..6fd2753c4cbc2a4f1bfe4e9a3324d32ec45804d8 100644 (file)
@@ -158,7 +158,9 @@ struct bdb_db_pgsize {
        int     bdp_size;
 };
 
+#ifdef LDAP_DEVEL
 #define BDB_MONITOR_IDX
+#endif
 
 typedef struct bdb_monitor_t {
        void            *bdm_cb;
index 9d357fa87bf72c9e5ebc72c0d27762a280779fc1..435fdbff84ec81aa1bd692a0e26bfff2bea76b62 100644 (file)
@@ -51,7 +51,9 @@ LDAP_BEGIN_DECL
 /* Most users will never see this */
 #define DEFAULT_RTXN_SIZE      10000
 
+#ifdef LDAP_DEVEL
 #define MDB_MONITOR_IDX
+#endif
 
 typedef struct mdb_monitor_t {
        void            *mdm_cb;