analyzing full scan in samba

simo idra at samba.org
Tue Nov 23 16:53:17 MST 2010


On Wed, 2010-11-24 at 00:32 +0300, Matthieu Patou wrote:
> @@ -582,7 +582,10 @@ int ltdb_search(struct ltdb_context *ctx)
>                                 /* useful for debugging when slow
> performance
>                                  * is caused by unindexed searches */
>                                 char *expression =
> ldb_filter_from_tree(ctx, ctx->tree);
> -                               ldb_debug(ldb, LDB_DEBUG_WARNING, "ldb
> FULL SEARCH: %s\n", expression);
> +                               ldb_debug(ldb, LDB_DEBUG_WARNING, "ldb
> FULL SEARCH: %s BASE: %s\n",
> +                                                       expression,
> +                                                       ldb_dn_get_linearized(req->op.search.base));
> +

Are we sure LDB_DEBUG_WARNING is right here ?
I would think LDB_DEBUG_TRACE is the right one.

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>



More information about the samba-technical mailing list