re-enabled flat buffers, fixed the latencyBandConfig serialization

This commit is contained in:
Evan Tschannen 2019-07-27 17:48:24 -07:00
parent 5c98dcce6d
commit cfc985cdf1
2 changed files with 2 additions and 16 deletions

View File

@ -36,21 +36,7 @@ struct LatencyBandConfig {
template <class Ar>
void serialize(Ar& ar) {
uint64_t bandsSize = (uint64_t)bands.size();
serializer(ar, bandsSize);
if(ar.isDeserializing) {
double band;
for(uint64_t i = 0; i < bandsSize; i++) {
serializer(ar, band);
bands.insert(band);
}
}
else {
for(double band : bands) {
serializer(ar, band);
}
}
serializer(ar, bands);
}
protected:

View File

@ -968,7 +968,7 @@ int main(int argc, char* argv[]) {
double fileIoTimeout = 0.0;
bool fileIoWarnOnly = false;
uint64_t rsssize = -1;
bool useObjectSerializer = false;
bool useObjectSerializer = true;
if( argc == 1 ) {
printUsage(argv[0], false);