~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/rand.cc

  • Committer: Brian Aker
  • Date: 2008-11-23 00:59:08 UTC
  • Revision ID: brian@tangent.org-20081123005908-yydyfzf60h8cc2zy
Update bits for replication

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
  }
55
55
  else
56
56
  {
57
 
    /*
58
 
      Save the seed only the first time RAND() is used in the query
59
 
      Once events are forwarded rather than recreated,
60
 
      the following can be skipped if inside the slave thread
61
 
    */
62
 
    if (!session->rand_used)
63
 
    {
64
 
      session->rand_used= 1;
65
 
      session->rand_saved_seed1= session->rand.seed1;
66
 
      session->rand_saved_seed2= session->rand.seed2;
67
 
    }
68
57
    rand= &session->rand;
69
58
  }
70
59
  return false;