Commit baa407d
committed
sdk/rust: Fix pwrite to flushing buffer before returning
Let's call flush() after write_all() to be safe. It's unclear to me if
this explains a hostfs test failure I saw, but Tokio's documentation
suggests that a write_all() returns when the write is handed over to the
thread pool, but makes no guarantees that the write actually is done,
meaning a subsequent read might return state data.1 parent e62c4f1 commit baa407d
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
0 commit comments