summaryrefslogtreecommitdiff
path: root/source4/dsdb/repl
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-12-17 22:26:03 +0200
committerKamen Mazdrashki <kamenim@samba.org>2010-12-17 23:34:29 +0100
commit839fe073594c68d1317828ab4087fd52dc801ad2 (patch)
treee061ba3e8ed5e27738ca53887226f920784268df /source4/dsdb/repl
parentb4476d5f7d434de2936346bedcac932f5294eeb0 (diff)
downloadsamba-839fe073594c68d1317828ab4087fd52dc801ad2.tar.gz
samba-839fe073594c68d1317828ab4087fd52dc801ad2.tar.bz2
samba-839fe073594c68d1317828ab4087fd52dc801ad2.zip
s4-drepl: Reference current Schema cache into working_schema context
working_schema is a shallow copy of current schema and thus depends on part of it. So we want it to be around as long as working_schema is used. Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Fri Dec 17 23:34:29 CET 2010 on sn-devel-104
Diffstat (limited to 'source4/dsdb/repl')
-rw-r--r--source4/dsdb/repl/replicated_objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c
index f3b6356649..d01d3c1e7f 100644
--- a/source4/dsdb/repl/replicated_objects.c
+++ b/source4/dsdb/repl/replicated_objects.c
@@ -476,7 +476,7 @@ WERROR dsdb_replicated_objects_commit(struct ldb_context *ldb,
*/
if (working_schema) {
/* store current schema so we can fall back in case of failure */
- cur_schema = dsdb_get_schema(ldb, objects);
+ cur_schema = dsdb_get_schema(ldb, working_schema);
ret = dsdb_reference_schema(ldb, working_schema, false);
if (ret != LDB_SUCCESS) {