summaryrefslogtreecommitdiff
path: root/sql/wsrep_var.cc
diff options
context:
space:
mode:
authorAlexey Yurchenko <ayurchen@gmail.com>2015-03-28 13:57:38 +0200
committerNirbhay Choubey <nirbhay@mariadb.com>2015-05-08 17:41:08 -0400
commit608a1ce5b184f617d45c69095e1fae7b39402853 (patch)
tree6f17f699c0263c60a50eb0c36bad48410c31c655 /sql/wsrep_var.cc
parent58bbe9b0049638e1df12ab7443b233dcc25d0be9 (diff)
downloadmariadb-git-608a1ce5b184f617d45c69095e1fae7b39402853.tar.gz
Refs codership/mysql-wsrep#33 - change const initialization to assignment to follow the genral style of the file.
Diffstat (limited to 'sql/wsrep_var.cc')
-rw-r--r--sql/wsrep_var.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/wsrep_var.cc b/sql/wsrep_var.cc
index 509ff7fcbc2..bbfa79ac3fd 100644
--- a/sql/wsrep_var.cc
+++ b/sql/wsrep_var.cc
@@ -143,10 +143,10 @@ err:
static
void wsrep_set_local_position(const char* const value, bool const sst)
{
- size_t const value_len(strlen(value));
+ size_t const value_len = strlen(value);
wsrep_uuid_t uuid;
- size_t const uuid_len(wsrep_uuid_scan(value, value_len, &uuid));
- wsrep_seqno_t const seqno(strtoll(value + uuid_len + 1, NULL, 10));
+ size_t const uuid_len = wsrep_uuid_scan(value, value_len, &uuid);
+ wsrep_seqno_t const seqno = strtoll(value + uuid_len + 1, NULL, 10);
if (sst) {
wsrep_sst_received (wsrep, uuid, seqno, NULL, 0);