fsync for file copy
This commit is contained in:
parent
291aaff1c6
commit
e353e3b946
|
@ -142,6 +142,8 @@ int64_t taosCopy(char *from, char *to) {
|
|||
if (bytes < sizeof(buffer)) break;
|
||||
}
|
||||
|
||||
fsync(fidto);
|
||||
|
||||
close(fidfrom);
|
||||
close(fidto);
|
||||
return size;
|
||||
|
|
Loading…
Reference in New Issue