fix invald read/write
This commit is contained in:
parent
a2030dc378
commit
ae7d5c79e5
|
@ -209,8 +209,8 @@ int32_t streamBackendDoCheckpoint(int64_t backendRid, const char* path) {
|
||||||
}
|
}
|
||||||
rocksdb_checkpoint_create(cp, path, 64 << 20, &err);
|
rocksdb_checkpoint_create(cp, path, 64 << 20, &err);
|
||||||
if (err != NULL) {
|
if (err != NULL) {
|
||||||
taosMemoryFree(err);
|
|
||||||
qError("stream backend:%p failed to do checkpoint at:%s, reason:%s", pHandle, path, err);
|
qError("stream backend:%p failed to do checkpoint at:%s, reason:%s", pHandle, path, err);
|
||||||
|
taosMemoryFree(err);
|
||||||
} else {
|
} else {
|
||||||
code = 0;
|
code = 0;
|
||||||
qDebug("stream backend:%p end to do checkpoint at:%s, time cost:%" PRId64 "ms", pHandle, path,
|
qDebug("stream backend:%p end to do checkpoint at:%s, time cost:%" PRId64 "ms", pHandle, path,
|
||||||
|
|
Loading…
Reference in New Issue