s3:registry: add a warning debug message when the sorted subkeys is created from...
authorMichael Adam <obnox@samba.org>
Wed, 11 May 2011 14:19:41 +0000 (16:19 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 12 May 2011 09:48:30 +0000 (11:48 +0200)
source3/registry/reg_backend_db.c

index cd57868efa89229b7d0cbe6e3a762396c93aea53..11bbe7ed36a30d1bbb3c7b317c66b27751f1ef2b 100644 (file)
@@ -1517,6 +1517,11 @@ static bool scan_parent_subkeys(struct db_context *db, const char *parent,
                        goto fail;
                }
 
+               DEBUG(2, (__location__ " WARNING: recreating the sorted "
+                         "subkeys cache for key '%s' from scan_parent_subkeys "
+                         "this should not happen (too frequently)...\n",
+                         path));
+
                status = create_sorted_subkeys_internal(path, key);
                if (!NT_STATUS_IS_OK(status)) {
                        res = db->transaction_cancel(db);