fix(cos/put): seek to part offset

This commit is contained in:
Minglei Jin 2023-12-13 15:14:49 +08:00
parent 613ca2c370
commit 7cb32da336
1 changed files with 7 additions and 0 deletions

View File

@ -671,6 +671,13 @@ upload:
continue;
}
if (i > 0 && cp.parts[i - 1].completed) {
if (taosLSeekFile(data->infileFD, cp.parts[i].offset, SEEK_SET) < 0) {
code = TAOS_SYSTEM_ERROR(errno);
goto clean;
}
}
int seq = cp.parts[i].index + 1;
partData.manager = &manager;