projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45a8827
)
Silence warning for initializer "mdb_copy my = {0}"
author
Hallvard Furuseth
<hallvard@openldap.org>
Sat, 3 Sep 2016 07:41:30 +0000
(09:41 +0200)
committer
Hallvard Furuseth
<hallvard@openldap.org>
Sat, 3 Sep 2016 07:41:30 +0000
(09:41 +0200)
1st struct member was not a scalar.
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index
0110402
..
b0518a5
100644
(file)
--- a/
libraries/liblmdb/mdb.c
+++ b/
libraries/liblmdb/mdb.c
@@
-9628,12
+9628,12
@@
mdb_put(MDB_txn *txn, MDB_dbi dbi,
/** State needed for a double-buffering compacting copy. */
typedef struct mdb_copy {
+ MDB_env *mc_env;
+ MDB_txn *mc_txn;
pthread_mutex_t mc_mutex;
pthread_cond_t mc_cond; /**< Condition variable for #mc_new */
char *mc_wbuf[2];
char *mc_over[2];
- MDB_env *mc_env;
- MDB_txn *mc_txn;
int mc_wlen[2];
int mc_olen[2];
pgno_t mc_next_pgno;