diff options
author | Simo Sorce <idra@samba.org> | 2008-09-11 18:38:40 -0400 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-09-29 04:22:20 +0200 |
commit | b2901da479f5e711986de48df4910910460fe7db (patch) | |
tree | da33b32d795781a689793b41b76a76a017f06d6a /source4/lib | |
parent | f14a2b3386e9f44111cee010f6864602e5b833cd (diff) | |
download | samba-b2901da479f5e711986de48df4910910460fe7db.tar.gz samba-b2901da479f5e711986de48df4910910460fe7db.tar.bz2 samba-b2901da479f5e711986de48df4910910460fe7db.zip |
LDB ASYNC: misc changes
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/ldb_wrap.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/source4/lib/ldb_wrap.c b/source4/lib/ldb_wrap.c index 6c683a1e33..617371333f 100644 --- a/source4/lib/ldb_wrap.c +++ b/source4/lib/ldb_wrap.c @@ -71,6 +71,7 @@ static void ldb_wrap_debug(void *context, enum ldb_debug_level level, static int ldb_wrap_destructor(struct ldb_context *ldb) { size_t *startup_blocks = (size_t *)ldb_get_opaque(ldb, "startup_blocks"); + if (startup_blocks && talloc_total_blocks(ldb) > *startup_blocks + 400) { DEBUG(0,("WARNING: probable memory leak in ldb %s - %lu blocks (startup %lu) %lu bytes\n", @@ -124,15 +125,6 @@ struct ldb_context *ldb_wrap_connect(TALLOC_CTX *mem_ctx, "%s/ldb", lp_modulesdir(lp_ctx))); -#if 0 - if (ev) { - ldb_event_sys_op_init(ldb, ev); - } else { - talloc_free(ldb); - return NULL; - } -#endif - if (ldb_set_opaque(ldb, "sessionInfo", session_info)) { talloc_free(ldb); return NULL; @@ -198,6 +190,3 @@ struct ldb_context *ldb_wrap_connect(TALLOC_CTX *mem_ctx, return ldb; } - - - |