~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/binlog_writer.cc

  • Committer: Brian Aker
  • Date: 2009-10-15 18:32:22 UTC
  • mfrom: (1130.3.47 memory-file-moves)
  • Revision ID: brian@gaz-20091015183222-n79fjde41epz9u6g
Merge memory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
3
 *
 
4
 *  Copyright (C) 2009 Sun Microsystems
 
5
 *
 
6
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation; version 2 of the License.
 
9
 *
 
10
 *  This program is distributed in the hope that it will be useful,
 
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 *  GNU General Public License for more details.
 
14
 *
 
15
 *  You should have received a copy of the GNU General Public License
 
16
 *  along with this program; if not, write to the Free Software
 
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
18
 */
 
19
 
1
20
#include <drizzled/global.h>
2
21
 
3
22
#include <drizzled/message/binlog_encoding.h>
4
23
#include <drizzled/message/binary_log.h>
5
24
 
6
 
#include "ioutil.h"
 
25
#include "drizzled/message/ioutil.h"
7
26
 
8
27
#include <google/protobuf/io/zero_copy_stream_impl.h>
9
28
#include <google/protobuf/io/coded_stream.h>
18
37
#include <sys/stat.h>
19
38
#include <fcntl.h>
20
39
 
 
40
using namespace drizzled;
21
41
using namespace std;
22
42
using namespace google;
23
43
 
128
148
    new protobuf::io::CodedOutputStream(raw_output);
129
149
 
130
150
  stringstream sout;
131
 
  sout << ioutil::join(" ", &argv[optind], &argv[argc]);
 
151
  sout << message::ioutil::join(" ", &argv[optind], &argv[argc]);
132
152
 
133
153
  write_query(coded_output, trans_id, sout.str(), assign);
134
154