ldb:ldb.c/"ldb_wait" - change "ldb_wait" slightly in order to introduce error messages
commit500d1ba546ff3a677f0a48edc233daeed4d1fe41
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 21 Sep 2011 10:38:46 +0000 (21 12:38 +0200)
committerAndrew Tridgell <tridge@samba.org>
Tue, 11 Oct 2011 06:42:07 +0000 (11 08:42 +0200)
tree318caa1a1abf113de3e33f67c36ce961bab87a67
parent8cab94e827df1ecbb03cd91467be41feece8c6e5
ldb:ldb.c/"ldb_wait" - change "ldb_wait" slightly in order to introduce error messages

In this occasion remove a redundant check for "LDB_ASYNC_DONE":

if (handle->state == LDB_ASYNC_DONE ||    if (handle->state == LDB_ASYNC_DONE)
    handle->status != LDB_SUCCESS) {              return handle->status;
        return handle->status;         == if (handle->status != LDB_SUCCESS)
}                                                 return handle->status;
...                                       ...
return LDB_SUCCESS;                       return LDB_SUCCESS;

Signed-off-by: Andrew Tridgell <tridge@samba.org>
lib/ldb/common/ldb.c