From 26b683116459dad57888dcab6f6f05400e855894 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 11 May 2011 16:19:41 +0200 Subject: s3:registry: add a warning debug message when the sorted subkeys is created from key_exists() --- source3/registry/reg_backend_db.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index cd57868efa..11bbe7ed36 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -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); -- cgit