summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-07-04 17:20:28 +0200
committerMichael Adam <obnox@samba.org>2011-07-04 20:02:10 +0200
commitcc384c15969cdc395bfd3fcee10b5c04233df290 (patch)
tree38b922b2eae3690a314b5ac4a5fcc44de3ef0d7b /source3
parent340be35b9b068360b5fec5a0ea43dc8a3b294ba4 (diff)
downloadsamba-cc384c15969cdc395bfd3fcee10b5c04233df290.tar.gz
samba-cc384c15969cdc395bfd3fcee10b5c04233df290.tar.bz2
samba-cc384c15969cdc395bfd3fcee10b5c04233df290.zip
s3:registry: add debug-level-10 verbosity to regdb_upgrade_v2_v3_fn()
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_backend_db.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index a98a6ba8b7..5a944324be 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -475,6 +475,9 @@ static int regdb_upgrade_v2_to_v3_fn(struct db_record *rec, void *private_data)
strlen(REG_SORTED_SUBKEYS_PREFIX)) == 0)
{
/* Delete the deprecated sorted subkeys cache. */
+
+ DEBUG(10, ("regdb_upgrade_v2_to_v3: deleting [%s]\n", keyname));
+
status = rec->delete_rec(rec);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("regdb_upgrade_v2_to_v3: tdb_delete for [%s] "
@@ -486,12 +489,14 @@ static int regdb_upgrade_v2_to_v3_fn(struct db_record *rec, void *private_data)
}
if (strncmp(keyname, REG_VALUE_PREFIX, strlen(REG_VALUE_PREFIX)) == 0) {
+ DEBUG(10, ("regdb_upgrade_v2_to_v3: skipping [%s]\n", keyname));
return 0;
}
if (strncmp(keyname, REG_SECDESC_PREFIX,
strlen(REG_SECDESC_PREFIX)) == 0)
{
+ DEBUG(10, ("regdb_upgrade_v2_to_v3: skipping [%s]\n", keyname));
return 0;
}
@@ -500,6 +505,9 @@ static int regdb_upgrade_v2_to_v3_fn(struct db_record *rec, void *private_data)
* Walk the list and create the list record for those
* subkeys that don't already have one.
*/
+ DEBUG(10, ("regdb_upgrade_v2_to_v3: scanning subkey list of [%s]\n",
+ keyname));
+
buf = rec->value.dptr;
buflen = rec->value.dsize;
@@ -511,6 +519,9 @@ static int regdb_upgrade_v2_to_v3_fn(struct db_record *rec, void *private_data)
for (i=0; i<num_items; i++) {
len += tdb_unpack(buf+len, buflen-len, "f", subkeyname);
+ DEBUG(10, ("regdb_upgrade_v2_to_v3: "
+ "writing subkey list for [%s\\%s]\n",
+ keyname, subkeyname));
werr = regdb_store_subkey_list(regdb, keyname, subkeyname);
if (!W_ERROR_IS_OK(werr)) {
return 1;