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

View File

@@ -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);