Skip to content

Commit

Permalink
Jumbo blob
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinming-Hu authored and vinjiang committed Jul 7, 2020
1 parent 8bc3eed commit 4ac84e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Microsoft.WindowsAzure.Storage/includes/was/blob.h
Original file line number Diff line number Diff line change
Expand Up @@ -1755,7 +1755,7 @@ namespace azure { namespace storage {
/// Gets the maximum size of a blob in bytes that may be uploaded as a single blob.
/// </summary>
/// <returns>The maximum size of a blob, in bytes, that may be uploaded as a single blob,
/// ranging from between 1 and 256 MB inclusive.</returns>
/// ranging from between 1 and 5000 MB inclusive.</returns>
utility::size64_t single_blob_upload_threshold_in_bytes() const
{
return m_single_blob_upload_threshold;
Expand All @@ -1765,10 +1765,10 @@ namespace azure { namespace storage {
/// Sets the maximum size of a blob in bytes that may be uploaded as a single blob.
/// </summary>
/// <param name="value">The maximum size of a blob, in bytes, that may be uploaded as a single blob,
/// ranging from between 1 and 256 MB inclusive.</param>
/// ranging from between 1 and 5000 MB inclusive.</param>
void set_single_blob_upload_threshold_in_bytes(utility::size64_t value)
{
utility::assert_in_bounds<utility::size64_t>(_XPLATSTR("value"), value, 1 * 1024 * 1024, 256 * 1024 * 1024);
utility::assert_in_bounds<utility::size64_t>(_XPLATSTR("value"), value, 1 * 1024 * 1024, protocol::max_single_blob_upload_threshold);
m_single_blob_upload_threshold = value;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace azure { namespace storage { namespace protocol {
const size_t max_append_block_size = 4 * 1024 * 1024;
const size_t max_page_size = 4 * 1024 * 1024;
const size_t max_range_size = 4 * 1024 * 1024;
const utility::size64_t max_single_blob_upload_threshold = 256 * 1024 * 1024;
const utility::size64_t max_single_blob_upload_threshold = 5000 * 1024 * 1024ULL;

const size_t default_stream_write_size = 4 * 1024 * 1024;
const size_t default_stream_read_size = 4 * 1024 * 1024;
Expand Down

0 comments on commit 4ac84e8

Please sign in to comment.