~chillycreator/drizzle/drizzle-fix

« back to all changes in this revision

Viewing changes to plugin/transaction_log/transaction_log_applier.cc

  • Committer: Brian Aker
  • Date: 2010-04-06 06:50:19 UTC
  • mfrom: (1405.3.9 replication-api)
  • Revision ID: brian@gaz-20100406065019-n387mztxp1i75qel
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
{
80
80
}
81
81
 
82
 
void TransactionLogApplier::apply(const message::Transaction &to_apply)
 
82
plugin::ReplicationReturnCode
 
83
TransactionLogApplier::apply(Session &in_session,
 
84
                             const message::Transaction &to_apply)
83
85
{
 
86
  (void) in_session;
84
87
  uint8_t *buffer; /* Buffer we will write serialized header, 
85
88
                      message and trailing checksum to */
86
89
  uint8_t *orig_buffer;
101
104
                    " bytes.  Error: %s\n"), 
102
105
                  static_cast<int64_t>(total_envelope_length),
103
106
                  strerror(errno));
104
 
    return;
 
107
    return plugin::UNKNOWN_ERROR;
105
108
  }
106
109
  else
107
110
    orig_buffer= buffer; /* We will free() orig_buffer, as buffer is moved during write */
142
145
                                                      total_envelope_length),
143
146
                                  to_apply,
144
147
                                  checksum);
145
 
 
 
148
  return plugin::SUCCESS;
146
149
}