Fix offsets in storage file generation

master
Yury Kurlykov 2019-10-31 01:10:23 +10:00
parent 24381f6bcb
commit 7bfa64403e
1 changed files with 3 additions and 2 deletions

View File

@ -212,10 +212,11 @@ YDB_Error ydb_create_table(YDB_Engine *instance, const char *path) {
FILE *f = fopen(path, "wb");
// TODO test on other byte ordered archs
char tpl[] = YDB_TABLE_FILE_SIGN
"\x00\x01"
"\x00\x00\x00\x00\x00\x00\x00\x1E"
"\x00\x00\x00\x00\x00\x00\x00\x1E"
"\x1E\x00\x00\x00\x00\x00\x00\x00"
"\x1E\x00\x00\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00\x00\x00\x00\x00";
fwrite(tpl, sizeof(tpl)-1, 1, f);