diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2021-10-22 18:17:59 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2021-10-22 18:17:59 +0300 |
commit | a5d4cd4f414ff10f9585bdbf4b6cfe7194ea2b63 (patch) | |
tree | ee2167d1e612336cab96dda4438f0528b7737ce6 | |
parent | 1f92b4ae0e0dc6d3d31a3a544925df0654cd72da (diff) |
Fix yet another bug in preceding commit. Definitely now passes CI!
-rw-r--r-- | include/llfio/v2.0/detail/impl/posix/file_handle.ipp | 1 | ||||
-rw-r--r-- | include/llfio/v2.0/detail/impl/windows/file_handle.ipp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/llfio/v2.0/detail/impl/posix/file_handle.ipp b/include/llfio/v2.0/detail/impl/posix/file_handle.ipp index 7339db61..82d5fe32 100644 --- a/include/llfio/v2.0/detail/impl/posix/file_handle.ipp +++ b/include/llfio/v2.0/detail/impl/posix/file_handle.ipp @@ -845,6 +845,7 @@ result<file_handle::extent_pair> file_handle::clone_extents_to(file_handle::exte { return errc::resource_unavailable_try_again; // something is wrong } + readed = {readed.data(), thisblock}; LLFIO_DEADLINE_TO_PARTIAL_DEADLINE(nd, d); const_buffer_type cb(readed.front().data(), thisblock); if(item.destination_extents_are_new) diff --git a/include/llfio/v2.0/detail/impl/windows/file_handle.ipp b/include/llfio/v2.0/detail/impl/windows/file_handle.ipp index e7fb1631..65ec1542 100644 --- a/include/llfio/v2.0/detail/impl/windows/file_handle.ipp +++ b/include/llfio/v2.0/detail/impl/windows/file_handle.ipp @@ -726,6 +726,7 @@ result<file_handle::extent_pair> file_handle::clone_extents_to(file_handle::exte { return errc::resource_unavailable_try_again; // something is wrong } + readed = {readed.data(), thisblock}; LLFIO_DEADLINE_TO_PARTIAL_DEADLINE(nd, d); const_buffer_type cb(readed.front().data(), thisblock); if(item.destination_extents_are_new) |