Check value of sanity while looping over switch_cache_db_get_db_handle_dsn() in switch_user_sql_thread.