← Back to team overview

linux-traipu team mailing list archive

[Bug 822003] [NEW] --mysql-unix-socket-protocol.clobber doesn't work

 

Public bug reported:

--mysql-unix-socket-protocol.clobber has no affect because the plugin
code doesn't link the option to its C++ variable.  Looking through
plugin/mysql_unix_socket_protocol/protocol.cc shows (on various lines):

static bool clobber= false;

context.registerVariable(new sys_var_bool_ptr_readonly("clobber",
&clobber));

// In case we restart and find something in our way we move it aside and
// then attempt to remove it.
if (clobber)
{
...
}


context("clobber", _("Clobber socket file if one is there already."));

This is easy to confirm:  touch /tmp/mysql.socket, start drizzle with
--mysql-unix-socket-protocol.clobber, and the error log will say
""/tmp/mysql.socket" exists already. Do you have another Drizzle or
MySQL running? Or perhaps the file is stale and should be removed?" and
the plugin doesn't load.

Tested with trunk code pulled today (at revno 2385).

** Affects: drizzle
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Drizzle.
https://bugs.launchpad.net/bugs/822003

Title:
  --mysql-unix-socket-protocol.clobber doesn't work

Status in A Lightweight SQL Database for Cloud Infrastructure and Web Applications:
  New

Bug description:
  --mysql-unix-socket-protocol.clobber has no affect because the plugin
  code doesn't link the option to its C++ variable.  Looking through
  plugin/mysql_unix_socket_protocol/protocol.cc shows (on various
  lines):

  static bool clobber= false;

  context.registerVariable(new sys_var_bool_ptr_readonly("clobber",
  &clobber));

  // In case we restart and find something in our way we move it aside and
  // then attempt to remove it.
  if (clobber)
  {
  ...
  }

  
  context("clobber", _("Clobber socket file if one is there already."));

  This is easy to confirm:  touch /tmp/mysql.socket, start drizzle with
  --mysql-unix-socket-protocol.clobber, and the error log will say
  ""/tmp/mysql.socket" exists already. Do you have another Drizzle or
  MySQL running? Or perhaps the file is stale and should be removed?"
  and the plugin doesn't load.

  Tested with trunk code pulled today (at revno 2385).

To manage notifications about this bug go to:
https://bugs.launchpad.net/drizzle/+bug/822003/+subscriptions


Follow ups

References