/*++ /* NAME /* nbdb_util 3 /* SUMMARY /* Non-Berkeley-DB migration support /* SYNOPSIS /* #include <nbdb_util.h> /* /* int nbdb_level; /* bool nbdb_reindexing_lockout; /* /* void nbdb_util_init(const char *level_name) /* /* int nbdb_is_legacy_type(const char *type) /* /* const char *nbdb_find_non_leg_suffix(const char *non_leg_type) /* /* const char *nbdb_map_leg_type( /* const char *leg_type, /* const char *name, /* const DICT_OPEN_INFO **open_info, /* VSTRING *why) /* DESCRIPTION /* This module contains utilities that may be called by clients /* and servers of the non-Berkeley-DB migration service. /* /* nbdb_is_legacy_type() returns true if the specified database /* type is a Berkeley DB type ('hash' or 'btree'). /* /* nbdb_find_non_leg_suffix() returns the database pathname suffix /* for the specified non-legacy database, or null if no suffix /* was found. /* /* nbdb_map_leg_type() implements the mapping from expected legacy /* type names to expected non-legacy type names. This supports /* a user-defined mapping override, indexed by legacy type or legacy /* type:name. nbdb_map_leg_type() returns null in case of error: /* a table lookup error, an unexpected input type, or an unexpected /* output type. /* .IP leg_type /* A legacy database type to be mapped to a non-legacy type. /* .IP name /* A database name. /* .IP open_info /* Null pointer, or pointer to DICT_OPEN_INFO pointer with function /* pointers to open the non-legacy database. /* .IP why /* Storage for descriptive text in case of error. /* .PP /* /* nbdb_util_init() converts the non-Berkeley-DB migration level /* from text to internal form, and updates the nbdb_level global /* variable: /* .IP "redirect (internal form: NBDB_LEV_CODE_REDIRECT)" /* Enables the mapping from legacy Berkeley DB types to preferred /* types. /* .IP "reindex (internal form: NBDB_LEV_CODE_REINDEX)" /* As "redirect", but also makes requests to a reindexing service /* if the non-legacy indexed file does not exist. /* Exception: calling a reindexing service will remain disabled /* if the process sets nbdb_reindexing_lockout to 'true'. /* SEE ALSO /* nbdb_reindexd(8), helper daemon to reindex legacy tables /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* porcupine.org
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.