Commit 05db0d6
committed
Make rename closer to correct.
GridFTP assumes the rename semantics are the same as POSIX: the
operation is atomic and overwrites the destination file.
This is not true for the version of rename exposed by libhdfs - it
does not overwrite. So, on failures, we do a non-atomic delete
plus rename. It's not the correct semantics, but the best we can
do with this version of HDFS.1 parent 483d40f commit 05db0d6
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
459 | 466 | | |
460 | 467 | | |
461 | 468 | | |
| |||
0 commit comments