Fix P_INVALID def

vmware
Howard Chu 14 years ago
parent 7d678832a7
commit a4c3626267
  1. 2
      libraries/libmdb/mdb.c
  2. 2
      libraries/libmdb/mtest.c

@ -40,7 +40,7 @@
#define MDB_VERSION 1 #define MDB_VERSION 1
#define MAXKEYSIZE 255 #define MAXKEYSIZE 255
#define P_INVALID 0xFFFFFFFF #define P_INVALID (~0L)
#define F_ISSET(w, f) (((w) & (f)) == (f)) #define F_ISSET(w, f) (((w) & (f)) == (f))

@ -53,10 +53,10 @@ int main(int argc,char * argv[])
mdb_cursor_close(cursor); mdb_cursor_close(cursor);
j=0; j=0;
key.mv_data = sval;
for (i= count - 1; i > -1; i-= (random()%5)) { for (i= count - 1; i > -1; i-= (random()%5)) {
j++; j++;
rc = mdb_txn_begin(env, 0, &txn); rc = mdb_txn_begin(env, 0, &txn);
key.mv_data = sval;
sprintf(sval, "%03x ", values[i]); sprintf(sval, "%03x ", values[i]);
rc = mdb_del(db, txn, &key, NULL); rc = mdb_del(db, txn, &key, NULL);
if (rc) { if (rc) {

Loading…
Cancel
Save