Changed DataLakeFileClient::Flush's endingOffset parameter's name to position. (#1449)

* Changed DataLakeFileClient::Flush's endingOffset parameter's name to position.

* Update CHANGELOG.md
This commit is contained in:
Kan Tang 2021-01-24 20:28:34 -08:00 committed by GitHub
parent ad54405b9d
commit 0df1cfa90f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View File

@ -31,6 +31,10 @@
- Removed unused type `AccountResourceType` and `PathLeaseAction`.
- Changed all previous `LeaseDuration` members to a new type named `LeaseDurationType`.
### Other Changes and Improvements
- Changed `DataLakeFileClient::Flush`'s `endingOffset` parameter's name to `position`.
## 12.0.0-beta.6 (2020-01-14)
### New Features

View File

@ -98,7 +98,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
/**
* @brief Flushes previous uploaded data to a file.
* @param endingOffset This parameter allows the caller to upload data in parallel and control
* @param position This parameter allows the caller to upload data in parallel and control
* the order in which it is appended to the file.
* The value must be the offset where the data is to be appended.
* Uploaded data is not immediately flushed, or written, to the file. To flush,
@ -112,7 +112,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
* @remark This request is sent to dfs endpoint.
*/
Azure::Core::Response<Models::FlushDataLakeFileResult> Flush(
int64_t endingOffset,
int64_t position,
const FlushDataLakeFileOptions& options = FlushDataLakeFileOptions()) const;
/**

View File

@ -222,11 +222,11 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
}
Azure::Core::Response<Models::FlushDataLakeFileResult> DataLakeFileClient::Flush(
int64_t endingOffset,
int64_t position,
const FlushDataLakeFileOptions& options) const
{
Details::DataLakeRestClient::Path::FlushDataOptions protocolLayerOptions;
protocolLayerOptions.Position = endingOffset;
protocolLayerOptions.Position = position;
protocolLayerOptions.RetainUncommittedData = options.RetainUncommittedData;
protocolLayerOptions.Close = options.Close;
protocolLayerOptions.ContentLength = 0;