void es_mb_delete( struct es_mb *db );
Destroy database instance and recover all resources. Database must already have been constructed via a call to es_mb_new.
es_mb_delete() loops over each root node in the database and destroys them via call to es_mbn_delete(), which recurses to destory all child and descendent nodes.
NULL child and descendant nodes are ignored.
References to duplicate child nodes are recognised by es_mb_delete()/es_mbn_delete() and do not result in an error.
Databases that are memory-mapped to files via es_mb_loadmap() are un-mapped.
|Copyright © 2012 by Richard Brooks|