[skip ci] Add comment about LMDB env_close function call

This commit is contained in:
George Peter Banyard 2022-07-21 14:48:25 +01:00
parent 11c424c9fb
commit cd640778f7
No known key found for this signature in database
GPG key ID: 3306078E3194AEBD

View file

@ -62,6 +62,8 @@ DBA_OPEN_FUNC(lmdb)
rc = mdb_env_open(env, info->path, flags, mode);
if (rc) {
/* If this function [mdb_env_open()] fails, mdb_env_close() must be called to discard the MDB_env handle.
* http://www.lmdb.tech/doc/group__mdb.html#ga32a193c6bf4d7d5c5d579e71f22e9340 */
mdb_env_close(env);
*error = mdb_strerror(rc);
return FAILURE;