truncate file can extend file size
parent
3b08a6706c
commit
930f2ddb91
|
|
@ -5105,14 +5105,11 @@ static int storage_do_truncate_file(struct fast_task_info *pTask)
|
||||||
}
|
}
|
||||||
if (remain_bytes > stat_buf.st_size)
|
if (remain_bytes > stat_buf.st_size)
|
||||||
{
|
{
|
||||||
logError("file: "__FILE__", line: %d, " \
|
logWarning("file: "__FILE__", line: %d, " \
|
||||||
"client ip: %s, truncated file size: " \
|
"client ip: %s, truncated file size: " \
|
||||||
"%"PRId64" is invalid, " \
|
"%"PRId64" > appender file size: %" \
|
||||||
"which > appender file size: %" \
|
|
||||||
PRId64, __LINE__, pTask->client_ip, \
|
PRId64, __LINE__, pTask->client_ip, \
|
||||||
remain_bytes, (int64_t)stat_buf.st_size);
|
remain_bytes, (int64_t)stat_buf.st_size);
|
||||||
|
|
||||||
return EINVAL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pFileContext->extra_info.upload.start_time = g_current_time;
|
pFileContext->extra_info.upload.start_time = g_current_time;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue