Merge pull request #24044 from taosdata/fix/TD-27849

fix(cos/put): seek to part offset
This commit is contained in:
Hongze Cheng 2023-12-13 16:12:53 +08:00 committed by GitHub
commit 31d61415c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;