Exemplo n.º 1
0
void BatchInsertProc::buildPkg(messageqcpp::ByteStream& bs)
{
	bs.reset();
	bs << (ByteStream::byte) WE_SVR_BATCH_INSERT;
	bs << fUniqueId;
	bs << (uint32_t) fTxnid;
	bs << fCurrentPMid; //to keep track of PMs
	bs += getPkg();
}
Exemplo n.º 2
0
void BatchInsertProc::buildLastPkg(messageqcpp::ByteStream& bs)
{
	bs.reset();
	bs << (ByteStream::byte) WE_SVR_BATCH_INSERT_END;
	bs << fUniqueId;
	bs << (ByteStream::quadbyte) fTxnid;
	bs << (ByteStream::byte)fIsAutocommitOn;
	bs << fTableOid;
	bs << (ByteStream::byte) fErrorCode;
}