WRITELOCK
WRITELOCK(this, empty_result(DB_LOCK_ERROR), "w db::log_action");
WRITELOCK(this, empty_result(DB_LOCK_ERROR), "w db::execute");
WRITELOCK(this, -1, "w db::reset_log");
WRITELOCK(this, -1, "w db::close_log");
WRITELOCK(this, -1, "w db::open_log");
WRITELOCK(db, FALSE, "db::apply_log_entry");
WRITELOCK(this, FALSE, "w db::execute_log_entry");
WRITELOCK(this, -1, "w db::incorporate_log");
WRITELOCK(this, FALSE, "w db::load");
WRITELOCK(this, FALSE, "w db::init");
WRITELOCK(this, FALSE, "w db::checkpoint");
WRITELOCK(this, -1, "w db::remove_files");
WRITELOCK(this, DB_LOCK_ERROR, "w db::sync_log");
WRITELOCK(this, FALSE, "w db_dictionary::init");
WRITELOCK(dict, FALSE, "w apply_log_entry");
WRITELOCK(this, -1, "w db_dictionary::incorporate_log");
WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::db_shutdown");
WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::checkpoint");
WRITELOCK(this, -1, "w db_dictionary::reset_log");
WRITELOCK(this, -1, "w db_dictionary::close_log");
WRITELOCK(this, -1, "w db_dictionary::open_log");
WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::db_standby");
WRITELOCK(this, NULL, "w db_dictionary::find_table");
WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::log_action");
WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::delete_table_aux");
WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::add_table_aux");
WRITELOCK(this, NULL, "db_dictionary::db_copy_dictionary w");
WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::defer");
WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::rollback");
WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::commit");
WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::change_table_name");
WRITELOCK(this, FALSE, "w db_dictionary::inittemp");
WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::massage_dict");
WRITELOCK(this, DB_LOCK_ERROR, "w db_dictionary::merge_dict");
WRITELOCK(this, 0, "w db_dictlog::execute_on_log");
WRITELOCK(this, -1, "w db_dictlog::append");
WRITELOCK(this, DB_LOCK_ERROR, "w db_index::remove");
WRITELOCK(this, DB_LOCK_ERROR, "w db_index::add");
WRITELOCK(this, -1, "w db_index::dump");
WRITELOCK(f, -1, "w f db_log::copy");
WRITELOCK(this, -1, "w db_log::append");
WRITELOCK(this, -1, "w db_log::sync_log");
WRITELOCK(this, -1, "w db_log::close");
WRITELOCK(this, FALSE, "w db_log::open");
WRITELOCK(this, 0, "w db_log::execute_on_log");
WRITELOCK(dp, -1, "w pickle_mindex::transfer");
WRITELOCK(this, -1, "w db_mindex::load");
WRITELOCK(this, DB_LOCK_ERROR, "w db_mindex::remove_aux");
WRITELOCK(this, DB_LOCK_ERROR, "w db_mindex::remove");
WRITELOCK(this, DB_LOCK_ERROR, "w db_mindex::add");
WRITELOCK(this, -1, "w pickle_file::transfer");
WRITELOCK(this, FALSE, "w pickle_file::open");
WRITELOCK(this, EOF, "w pickle_file::close");
WRITELOCK(this, 0, "w db_free_list::pop");
WRITELOCK(this, FALSE, "w db_free_list::push");
WRITELOCK(this, FALSE, "db_table::configure w");