mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 17:34:14 +08:00
mdbx: fix 'mdb_copy' init warning.
Change-Id: Ifc3d0b565a0dd6d6da40e7fe2be2c9ff0f5458fb
This commit is contained in:
parent
eb3a9505a3
commit
a3a98a7a2e
3
mdb.c
3
mdb.c
@ -9301,12 +9301,13 @@ mdb_env_copyfd1(MDB_env *env, HANDLE fd)
|
|||||||
{
|
{
|
||||||
MDB_meta *mm;
|
MDB_meta *mm;
|
||||||
MDB_page *mp;
|
MDB_page *mp;
|
||||||
mdb_copy my = {0};
|
mdb_copy my;
|
||||||
MDB_txn *txn = NULL;
|
MDB_txn *txn = NULL;
|
||||||
pthread_t thr;
|
pthread_t thr;
|
||||||
pgno_t root, new_root;
|
pgno_t root, new_root;
|
||||||
int rc = MDB_SUCCESS;
|
int rc = MDB_SUCCESS;
|
||||||
|
|
||||||
|
memset(&my, 0, sizeof(my));
|
||||||
if ((rc = pthread_mutex_init(&my.mc_mutex, NULL)) != 0)
|
if ((rc = pthread_mutex_init(&my.mc_mutex, NULL)) != 0)
|
||||||
return rc;
|
return rc;
|
||||||
if ((rc = pthread_cond_init(&my.mc_cond, NULL)) != 0)
|
if ((rc = pthread_cond_init(&my.mc_cond, NULL)) != 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user