Removed last compilation warnings, updated TODO

This commit is contained in:
Jean-Michel Vourgère
2012-07-02 23:29:05 +02:00
parent ce022eb1c7
commit 1db0a89ee2
3 changed files with 10 additions and 3 deletions

2
TODO
View File

@@ -3,7 +3,7 @@ Things to Do
general: general:
. compile with -Wall and fix warnings . compile with -Wall and fix warnings (done)
file format: file format:

View File

@@ -101,7 +101,9 @@ int
mdb_test_date(MdbSargNode *node, double td) mdb_test_date(MdbSargNode *node, double td)
{ {
struct tm found; 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 found_t;
time_t asked_t; time_t asked_t;

View File

@@ -779,7 +779,7 @@ mdb_copy_index_pg(MdbTableDef *table, MdbIndex *idx, MdbIndexPage *ipg)
MdbHandle *mdb = entry->mdb; MdbHandle *mdb = entry->mdb;
MdbColumn *col; MdbColumn *col;
guint32 pg_row; guint32 pg_row;
guint16 row; guint16 row = 0;
void *new_pg; void *new_pg;
unsigned char key_hash[256]; unsigned char key_hash[256];
int keycol; int keycol;
@@ -831,6 +831,11 @@ mdb_copy_index_pg(MdbTableDef *table, MdbIndex *idx, MdbIndexPage *ipg)
row++; 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); //mdb_put_int16(new_pg, mdb->fmt->row_count_offset, row);
/* free space left */ /* free space left */
mdb_put_int16(new_pg, 2, mdb->fmt->pg_size - ipg->offset); mdb_put_int16(new_pg, 2, mdb->fmt->pg_size - ipg->offset);