FreeBSD Bugzilla – Attachment 212019 Details for
Bug 244493
databases/lmdb: issue with MDB_USE_POSIX_MUTEX
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Sample program reproducing the issue
lmdb-mutex.c (text/plain), 685 bytes, created by
Michał Kępień
on 2020-02-28 10:48:42 UTC
(
hide
)
Description:
Sample program reproducing the issue
Filename:
MIME Type:
Creator:
Michał Kępień
Created:
2020-02-28 10:48:42 UTC
Size:
685 bytes
patch
obsolete
>#include <assert.h> >#include <lmdb.h> >#include <unistd.h> > >#define NZD_ENV_PATH "lmdb-mutex.nzd" >#define NZD_ENV_FLAGS (MDB_CREATE | MDB_NOSUBDIR) > >int main(void) { > MDB_env *env; > MDB_txn *txn; > > assert(mdb_env_create(&env) == MDB_SUCCESS); > assert(mdb_env_open(env, NZD_ENV_PATH, NZD_ENV_FLAGS, 0644) == MDB_SUCCESS); > assert(mdb_txn_begin(env, 0, MDB_RDONLY, &txn) == MDB_SUCCESS); > mdb_txn_abort(txn); > mdb_env_close(env); > > assert(mdb_env_create(&env) == MDB_SUCCESS); > assert(mdb_env_open(env, NZD_ENV_PATH, NZD_ENV_FLAGS, 0644) == MDB_SUCCESS); > assert(mdb_txn_begin(env, 0, MDB_RDONLY, &txn) == MDB_SUCCESS); > sleep(30); > mdb_txn_abort(txn); > mdb_env_close(env); > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 244493
: 212019