← Back to team overview

maria-developers team mailing list archive

MYSQL_THDVAR and SET GLOBAL

 

Is there an easy way to prevent SET GLOBAL ... from being done for
plugin variables declared via MYSQL_THDVAR_...? For the following
variable I can do SET GLOBAL innodb_fake_changes=1 and that sets a
global variable.

static MYSQL_THDVAR_BOOL(fake_changes, PLUGIN_VAR_OPCMDARG,
  "In the transaction after enabled, UPDATE, INSERT and DELETE only
move the cursor to the records "
  "and do nothing other operations (no changes, no ibuf, no undo, no
transaction log) in the transaction. "
  "This is to cause replication prefetch IO. ATTENTION: the
transaction started after enabled is affected.",
  check_fake_changes, NULL, FALSE);

-- 
Mark Callaghan
mdcallag@xxxxxxxxx


Follow ups