From 277831eaf140c06bb25a3549434bc4acd4f533ec Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 16 May 2013 17:51:56 +1000 Subject: dsdb-repl_meta_data: Move TODO comment about conflicts and missing parents Reviewed-by: Stefan Metzmacher Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Tue May 28 18:11:00 CEST 2013 on sn-devel-104 --- source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'source4') diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 5fc71ab1d2..98e60d7a8b 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -3658,15 +3658,6 @@ static int replmd_replicated_apply_add(struct replmd_replicated_request *ar) int ret; bool remote_isDeleted = false; - /* - * TODO: check if the parent object exist - */ - - /* - * TODO: handle the conflict case where an object with the - * same name exist - */ - ldb = ldb_module_get_ctx(ar->module); msg = ar->objs->objects[ar->index_current].msg; md = ar->objs->objects[ar->index_current].meta_data; @@ -3789,6 +3780,10 @@ static int replmd_replicated_apply_search_for_parent_callback(struct ldb_request } if (ares->error != LDB_SUCCESS && ares->error != LDB_ERR_NO_SUCH_OBJECT) { + /* + * TODO: deal with the above error that the parent object doesn't exist + */ + return ldb_module_done(ar->req, ares->controls, ares->response, ares->error); } -- cgit