Author: mkhl Date: 2006-07-15 09:04:28 +0000 (Sat, 15 Jul 2006) New Revision: 17051
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17051 Log: Reset the async handle status before running additional down requests. Martin Modified: branches/SOC/mkhl/ldb-map/modules/ldb_map.c Changeset: Modified: branches/SOC/mkhl/ldb-map/modules/ldb_map.c =================================================================== --- branches/SOC/mkhl/ldb-map/modules/ldb_map.c 2006-07-15 09:01:20 UTC (rev 17050) +++ branches/SOC/mkhl/ldb-map/modules/ldb_map.c 2006-07-15 09:04:28 UTC (rev 17051) @@ -2100,6 +2100,9 @@ ac->step = MAP_DO_ADD_LOCAL; + handle->state = LDB_ASYNC_INIT; + handle->status = LDB_SUCCESS; + return ldb_next_request(ac->module, ac->local_req); } @@ -2218,6 +2221,9 @@ ac->step = MAP_DO_MODIFY_LOCAL; + handle->state = LDB_ASYNC_INIT; + handle->status = LDB_SUCCESS; + return ldb_next_request(ac->module, ac->local_req); } @@ -2257,6 +2263,9 @@ ac->step = MAP_DO_MODIFY_REMOTE; + handle->state = LDB_ASYNC_INIT; + handle->status = LDB_SUCCESS; + return ldb_next_remote_request(ac->module, ac->remote_req); } @@ -2382,6 +2391,9 @@ ac->step = MAP_DO_DELETE_LOCAL; + handle->state = LDB_ASYNC_INIT; + handle->status = LDB_SUCCESS; + return ldb_next_request(ac->module, ac->local_req); } @@ -2417,6 +2429,9 @@ ac->step = MAP_DO_DELETE_REMOTE; + handle->state = LDB_ASYNC_INIT; + handle->status = LDB_SUCCESS; + return ldb_next_remote_request(ac->module, ac->remote_req); } @@ -2483,6 +2498,9 @@ ac->step = MAP_DO_RENAME_LOCAL; + handle->state = LDB_ASYNC_INIT; + handle->status = LDB_SUCCESS; + return ldb_next_request(ac->module, ac->local_req); } @@ -2531,6 +2549,9 @@ ac->step = MAP_DO_RENAME_FIXUP; + handle->state = LDB_ASYNC_INIT; + handle->status = LDB_SUCCESS; + return ldb_next_request(ac->module, ac->down_req); failed: @@ -2573,6 +2594,9 @@ ac->step = MAP_DO_RENAME_REMOTE; + handle->state = LDB_ASYNC_INIT; + handle->status = LDB_SUCCESS; + return ldb_next_remote_request(ac->module, ac->remote_req); }
