fix error resp on large kvs set
This commit is contained in:
parent
984f302353
commit
210db65b7d
|
@ -304,9 +304,9 @@ void fstStateCompileForAnyTrans(FstCountingWriter *w, CompiledAddr addr, FstBuil
|
||||||
for (size_t i = 0; i < sz; i++) {
|
for (size_t i = 0; i < sz; i++) {
|
||||||
FstTransition *t = taosArrayGet(node->trans, i);
|
FstTransition *t = taosArrayGet(node->trans, i);
|
||||||
index[t->inp] = i;
|
index[t->inp] = i;
|
||||||
fstCountingWriterWrite(w, (char *)index, sizeof(index));
|
|
||||||
//fstPackDeltaIn(w, addr, t->addr, tSize);
|
//fstPackDeltaIn(w, addr, t->addr, tSize);
|
||||||
}
|
}
|
||||||
|
fstCountingWriterWrite(w, (char *)index, 256);
|
||||||
free(index);
|
free(index);
|
||||||
}
|
}
|
||||||
fstCountingWriterWrite(w, (char *)&packSizes, 1);
|
fstCountingWriterWrite(w, (char *)&packSizes, 1);
|
||||||
|
|
|
@ -168,9 +168,18 @@ void checkFstPerf() {
|
||||||
int64_t s = taosGetTimestampUs();
|
int64_t s = taosGetTimestampUs();
|
||||||
int num = Performance_fstWriteRecords(fw);
|
int num = Performance_fstWriteRecords(fw);
|
||||||
int64_t e = taosGetTimestampUs();
|
int64_t e = taosGetTimestampUs();
|
||||||
|
|
||||||
printf("write %d record cost %" PRId64"us\n", num, e - s);
|
printf("write %d record cost %" PRId64"us\n", num, e - s);
|
||||||
|
delete fw;
|
||||||
|
|
||||||
|
FstReadMemory *m = new FstReadMemory(1024 * 64);
|
||||||
|
if (m->init()) {
|
||||||
|
uint64_t val;
|
||||||
|
if(m->Get("aaaaaaa", &val)) {
|
||||||
|
std::cout << "succes to Get val: " << val << std::endl;
|
||||||
|
} else {
|
||||||
|
std::cout << "failed to Get " << std::endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue