Permalink
Browse files

Removed last compilation warnings, updated TODO

  • Loading branch information...
Jean-Michel Vourgère
Jean-Michel Vourgère committed Jul 2, 2012
1 parent ce022eb commit 1db0a89ee26a5b3454d1e8b5e98fc11801261131
Showing with 10 additions and 3 deletions.
  1. +1 −1 TODO
  2. +3 −1 src/libmdb/sargs.c
  3. +6 −1 src/libmdb/write.c
View
2 TODO
@@ -3,7 +3,7 @@ Things to Do
general:
. compile with -Wall and fix warnings
. compile with -Wall and fix warnings (done)
file format:
View
@@ -101,7 +101,9 @@ int
mdb_test_date(MdbSargNode *node, double td)
{
struct tm found;
char date_tmp[MDB_BIND_SIZE]; //you should figure out a way to pull mdb_date_to_string in here
/* TODO: you should figure out a way to pull mdb_date_to_string in here
* char date_tmp[MDB_BIND_SIZE];
*/
time_t found_t;
time_t asked_t;
View
@@ -779,7 +779,7 @@ mdb_copy_index_pg(MdbTableDef *table, MdbIndex *idx, MdbIndexPage *ipg)
MdbHandle *mdb = entry->mdb;
MdbColumn *col;
guint32 pg_row;
guint16 row;
guint16 row = 0;
void *new_pg;
unsigned char key_hash[256];
int keycol;
@@ -831,6 +831,11 @@ mdb_copy_index_pg(MdbTableDef *table, MdbIndex *idx, MdbIndexPage *ipg)
row++;
}
if (!row) {
fprintf(stderr,"missing indexes not yet supported, aborting\n");
return 0;
}
//mdb_put_int16(new_pg, mdb->fmt->row_count_offset, row);
/* free space left */
mdb_put_int16(new_pg, 2, mdb->fmt->pg_size - ipg->offset);

0 comments on commit 1db0a89

Please sign in to comment.