failed to create compressed slog file on Fixed Array types.
dawa79 opened this issue · comments
#include
#include <hobbes/hobbes.H>
#include <hobbes/storage.H>
#include <hobbes/db/file.H>
#include <hobbes/db/series.H>
#include <hobbes/lang/tylift.H>
typedef unsigned char fixarray[16];
DEFINE_STRUCT(
FixarrayS,
(fixarray, id)
);
int main()
{
hobbes::cc c;
hobbes::writer writer{"/var/tmp/test.log"};
std::cout << "=============Create Raw Stream [OK]" << std::endl;
hobbes::series ss1(&c, &writer, "udata1", 10000, hobbes::StoredSeries::Raw);
FixarrayS v1;
ss1(v1);
std::cout << "=============Create Compressed Stream [Failed]" << std::endl;
hobbes::series ss2(&c, &writer, "udata2", 10000, hobbes::StoredSeries::Compressed);
FixarrayS v2;
ss2(v2);
return 0;
}
I believe the reason is that we didn't define UCModel /UCRead/UCWrite in boot/zstorage.hob.