User Tools

Site Tools


Sidebar

Table Of Contents

endurox:v7.5.x:api:ubf:bflddbdrop.3

bflddbdrop

Name

Bflddbdrop — drop LMDB database.

Synopsis

#include <ubf.h>

int Bflddbdrop(EDB_txn *txn);

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

Drop the LMDB UFB custom field databases. Note that if parameters in configuration are changed (like map size or max readers), after this call these parameters are not re-applied. The drop is done as part of the LMDB transaction, passed in the txn variable. The transaction is open by edb_txn_begin() and finished by edb_txn_commit() or edb_txn_abort().

RETURN VALUE

On success, Bflddbunlink() return zero; on error, -1 is returned, with Berror set to indicate the error.

ERRORS

In case of error Berror will be non 0. Note that Bstrerror() returns generic error message plus custom message with debug info from last function call.

BEINVAL database is not loaded.

BNOSPACE LMDB error - no space, see logs.

BEUNIX LMDB error, see logs.

EXAMPLE

See atmitest/test050_ubfdb/atmiclt50.c for sample code.

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd