~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/slave/replication_schema.cc

  • Committer: Monty Taylor
  • Date: 2011-03-10 21:39:42 UTC
  • mfrom: (2228.1.3 build)
  • Revision ID: mordred@inaugust.com-20110310213942-empexe7mfa2q437w
Merge Joe and Dave: Replication bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <drizzled/sql/result_set.h>
25
25
#include <string>
26
26
#include <vector>
 
27
#include <boost/lexical_cast.hpp>
27
28
 
28
29
using namespace std;
29
30
using namespace drizzled;
 
31
using namespace boost;
30
32
 
31
33
namespace slave
32
34
{
130
132
  return true;
131
133
}
132
134
 
 
135
bool ReplicationSchema::setInitialMaxCommitId(uint64_t value)
 
136
{
 
137
  vector<string> sql;
 
138
 
 
139
  sql.push_back("UPDATE `sys_replication`.`applier_state`"
 
140
                " SET `last_applied_commit_id` = "
 
141
                + lexical_cast<string>(value));
 
142
 
 
143
  return executeSQL(sql);
 
144
}
 
145
 
133
146
} /* namespace slave */