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(); }
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; }