add some logs.
This commit is contained in:
parent
568f874d12
commit
f66963ca7a
|
@ -97,10 +97,11 @@ void tExtMemBufferDestroy(tExtMemBuffer **pMemBuffer) {
|
||||||
|
|
||||||
// close temp file
|
// close temp file
|
||||||
if ((*pMemBuffer)->dataFile != 0) {
|
if ((*pMemBuffer)->dataFile != 0) {
|
||||||
int32_t ret = fclose((*pMemBuffer)->dataFile);
|
if (fclose((*pMemBuffer)->dataFile) != 0) {
|
||||||
if (ret != 0) {
|
|
||||||
pError("failed to close file:%s, reason:%s", (*pMemBuffer)->dataFilePath, strerror(errno));
|
pError("failed to close file:%s, reason:%s", (*pMemBuffer)->dataFilePath, strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pTrace("remove temp file:%s for external buffer", (*pMemBuffer)->dataFilePath);
|
||||||
unlink((*pMemBuffer)->dataFilePath);
|
unlink((*pMemBuffer)->dataFilePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue