-static void print_catalog_details(CAT *catalog, const char *working_dir)
-{
- POOLMEM *catalog_details = get_pool_memory(PM_MESSAGE);
-
- /*
- * Instantiate a BDB class and see what db_type gets assigned to it.
- */
- db = db_init_database(NULL, catalog->db_driver, catalog->db_name, catalog->db_user,
- catalog->db_password, catalog->db_address,
- catalog->db_port, catalog->db_socket,
- catalog->db_ssl_key, catalog->db_ssl_cert, catalog->db_ssl_ca,
- catalog->db_ssl_capath, catalog->db_ssl_cipher,
- catalog->mult_db_connections,
- catalog->disable_batch_insert);
- if (db) {
- printf("%sdb_type=%s\nworking_dir=%s\n", catalog->display(catalog_details),
- db_get_engine_name(db), working_directory);
- db_close_database(NULL, db);
- }
- free_pool_memory(catalog_details);
-}
-