Fix P_INVALID def

This commit is contained in:
Howard Chu 2011-06-28 02:57:02 -07:00
parent 7d678832a7
commit a4c3626267
2 changed files with 2 additions and 2 deletions

View File

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

View File

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