The Samba-Bugzilla – Attachment 2981 Details for
Bug 5090
Provisioning: New problems with ldb
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated version of ltdb_search
ldb_search.diff (text/plain), 1.22 KB, created by
Matthias Dieter Wallnöfer
on 2007-11-18 10:23:04 UTC
(
hide
)
Description:
Updated version of ltdb_search
Filename:
MIME Type:
Creator:
Matthias Dieter Wallnöfer
Created:
2007-11-18 10:23:04 UTC
Size:
1.22 KB
patch
obsolete
>Index: ldb_search.c >=================================================================== >--- ldb_search.c (revision 26023) >+++ ldb_search.c (working copy) >@@ -483,12 +483,18 @@ > ret = tdb_traverse_read(ltdb->tdb, search_func, handle); > } > >- if (ret == -1) { >- handle->status = LDB_ERR_OPERATIONS_ERROR; >+ if (ret == 0) { >+ ret = LDB_SUCCESS; >+ } else { >+ ret = LDB_ERR_OPERATIONS_ERROR; > } > >- handle->state = LDB_ASYNC_DONE; >- return LDB_SUCCESS; >+ if (ret == LDB_SUCCESS) { >+ handle->status = ret; >+ handle->state = LDB_ASYNC_DONE; >+ } >+ >+ return ret; > } > > /* >@@ -585,30 +591,22 @@ > } > } > >- if (ret != LDB_SUCCESS) { >- req->handle->state = LDB_ASYNC_DONE; >- req->handle->status = ret; >- } >- > /* Finally send an LDB_REPLY_DONE packet when searching is finished */ > > ares = talloc_zero(req, struct ldb_reply); > if (!ares) { >- ltdb_unlock_read(module); >- return LDB_ERR_OPERATIONS_ERROR; >+ ret = LDB_ERR_OPERATIONS_ERROR; > } > > req->handle->state = LDB_ASYNC_DONE; >- > if (ret == LDB_SUCCESS) { > ares->type = LDB_REPLY_DONE; >- > ret = req->callback(module->ldb, req->context, ares); >- req->handle->status = ret; > } >- >+ req->handle->status = ret; >+ > ltdb_unlock_read(module); >- >- return LDB_SUCCESS; >+ >+ return ret; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 5090
:
2977
|
2978
|
2979
|
2980
|
2981
|
2982
|
2983