Skip to content

Commit 56ac201

Browse files
committed
No need to reserve space for segment length.
Fixed typo. Thanks to @dyemanov for comments.
1 parent 7fec2e4 commit 56ac201

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/utils_proto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ namespace fb_utils
272272
inline unsigned char* putInfoItemInt(const unsigned char item, T value,
273273
unsigned char* ptr, const unsigned char* end)
274274
{
275-
static_assert(std::is_integral_v<T>, "Intergal type expected");
275+
static_assert(std::is_integral_v<T>, "Integral type expected");
276276

277277
constexpr auto len = sizeof(T);
278278
static_assert(len == 1 || len == 2 || len == 4 || len == 8, "unknown data type");

src/remote/client/interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5642,7 +5642,7 @@ IBlob* Attachment::openBlob(CheckStatusWrapper* status, ITransaction* apiTra, IS
56425642
// prefetch some data
56435643
packet->p_operation = op_get_segment;
56445644
P_SGMT* segment = &packet->p_sgmt;
5645-
segment->p_sgmt_length = BLOB_LENGTH - 2;
5645+
segment->p_sgmt_length = BLOB_LENGTH;
56465646
segment->p_sgmt_blob = INVALID_OBJECT;
56475647
segment->p_sgmt_segment.cstr_length = 0;
56485648

0 commit comments

Comments
 (0)