mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-09-19 18:47:54 +08:00
Removed last compilation warnings, updated TODO
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user