Skip to content

Commit df1717b

Browse files
committed
Use HalfStaticArray as demanded
1 parent 38da83d commit df1717b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dsql/DsqlRequests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,9 +609,9 @@ void DsqlDmlRequest::doExecute(thread_db* tdbb, jrd_tra** traHandle,
609609
// Create a temp message buffer and try one more receive.
610610
// If it succeed then the next record exists.
611611

612-
std::unique_ptr<UCHAR[]> message_buffer(FB_NEW_POOL(getPool()) UCHAR[outMsgLength]);
612+
HalfStaticArray<UCHAR, BUFFER_SMALL> message_buffer(getPool(), outMsgLength);
613613

614-
JRD_receive(tdbb, request, message->msg_number, outMsgLength, message_buffer.get());
614+
JRD_receive(tdbb, request, message->msg_number, outMsgLength, message_buffer.getBuffer(outMsgLength, false));
615615

616616
// Still active request means that second record exists
617617
if ((request->req_flags & req_active))

0 commit comments

Comments
 (0)