summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2011-07-13 16:51:54 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-15 08:34:47 +0200
commit5049e3e142977a4c3d0f5a0fd9c06429f4d85bed (patch)
tree24240e0e443801c8526bb947f23c5b78e75d9fa2
parent7e3d7505ddf2bdcf0d66273d9b96058969e2459b (diff)
downloadsamba-5049e3e142977a4c3d0f5a0fd9c06429f4d85bed.tar.gz
samba-5049e3e142977a4c3d0f5a0fd9c06429f4d85bed.tar.bz2
samba-5049e3e142977a4c3d0f5a0fd9c06429f4d85bed.zip
s3:registry avoid pruning the sequencenumber while flushing the regsubkey_ctr
Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Jul 15 08:34:47 CEST 2011 on sn-devel-104
-rw-r--r--source3/registry/reg_backend_db.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 65ff0aec69..e04374b917 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -1438,6 +1438,9 @@ static WERROR regdb_fetch_keys_internal(struct db_context *db, const char *key,
goto done;
}
+ werr = regsubkey_ctr_reinit(ctr);
+ W_ERROR_NOT_OK_GOTO_DONE(werr);
+
werr = regsubkey_ctr_set_seqnum(ctr, db->get_seqnum(db));
W_ERROR_NOT_OK_GOTO_DONE(werr);
@@ -1457,9 +1460,6 @@ static WERROR regdb_fetch_keys_internal(struct db_context *db, const char *key,
goto done;
}
- werr = regsubkey_ctr_reinit(ctr);
- W_ERROR_NOT_OK_GOTO_DONE(werr);
-
for (i=0; i<num_items; i++) {
len += tdb_unpack(buf+len, buflen-len, "f", subkeyname);
werr = regsubkey_ctr_addkey(ctr, subkeyname);