22
22
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
26
#include "rabbitmq_log.h"
27
27
#include <drizzled/message/transaction.pb.h>
28
28
#include <google/protobuf/io/coded_stream.h>
69
70
uint8_t* buffer= new uint8_t[message_byte_length];
72
errmsg_printf(error::ERROR, _("Failed to allocate enough memory to transaction message\n"));
73
errmsg_printf(ERRMSG_LVL_ERROR, _("Failed to allocate enough memory to transaction message\n"));
74
75
return plugin::UNKNOWN_ERROR;
154
155
po::value<string>()->default_value("localhost"),
155
_("Host name to connect to"));
156
N_("Host name to connect to"));
157
158
po::value<port_constraint>(&sysvar_rabbitmq_port)->default_value(5672),
158
_("Port to connect to"));
159
N_("Port to connect to"));
159
160
context("virtualhost",
160
161
po::value<string>()->default_value("/"),
161
_("RabbitMQ virtualhost"));
162
N_("RabbitMQ virtualhost"));
162
163
context("username",
163
164
po::value<string>()->default_value("guest"),
164
_("RabbitMQ username"));
165
N_("RabbitMQ username"));
165
166
context("password",
166
167
po::value<string>()->default_value("guest"),
167
_("RabbitMQ password"));
168
N_("RabbitMQ password"));
168
169
context("use-replicator",
169
170
po::value<string>()->default_value("default_replicator"),
170
_("Name of the replicator plugin to use (default='default_replicator')"));
171
N_("Name of the replicator plugin to use (default='default_replicator')"));
171
172
context("exchange",
172
173
po::value<string>()->default_value("ReplicationExchange"),
173
_("Name of RabbitMQ exchange to publish to"));
174
N_("Name of RabbitMQ exchange to publish to"));
174
175
context("routingkey",
175
176
po::value<string>()->default_value("ReplicationRoutingKey"),
176
_("Name of RabbitMQ routing key to use"));
177
N_("Name of RabbitMQ routing key to use"));
179
180
} /* namespace drizzle_plugin */