~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/transaction_services.cc

  • Committer: Andrew Hutchings
  • Date: 2011-02-02 12:51:57 UTC
  • mto: (2157.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2158.
  • Revision ID: andrew@linuxjedi.co.uk-20110202125157-r6thh7ox4g9l90ec
Make transaction_message_threshold a read-only global variable instead of a per-session variable
Make replication_dictionary column lengths use transation_message_threshold

Show diffs side-by-side

added added

removed removed

Lines of Context:
1264
1264
    transaction= getActiveTransactionMessage(session);
1265
1265
 
1266
1266
    if (static_cast<size_t>(transaction->ByteSize()) >= 
1267
 
        session.variables.transaction_message_threshold)
 
1267
        transaction_message_threshold)
1268
1268
    {
1269
1269
      transaction= segmentTransactionMessage(session, transaction);
1270
1270
    }
1283
1283
     * the Transaction will keep it from getting huge).
1284
1284
     */
1285
1285
    if (static_cast<size_t>(transaction->ByteSize()) >= 
1286
 
        session.variables.transaction_message_threshold)
 
1286
        transaction_message_threshold)
1287
1287
    {
1288
1288
      /* Remember the transaction ID so we can re-use it */
1289
1289
      uint64_t trx_id= transaction->transaction_context().transaction_id();
1450
1450
    transaction= getActiveTransactionMessage(session);
1451
1451
    
1452
1452
    if (static_cast<size_t>(transaction->ByteSize()) >= 
1453
 
        session.variables.transaction_message_threshold)
 
1453
        transaction_message_threshold)
1454
1454
    {
1455
1455
      transaction= segmentTransactionMessage(session, transaction);
1456
1456
    }
1469
1469
     * the Transaction will keep it from getting huge).
1470
1470
     */
1471
1471
    if (static_cast<size_t>(transaction->ByteSize()) >= 
1472
 
        session.variables.transaction_message_threshold)
 
1472
        transaction_message_threshold)
1473
1473
    {
1474
1474
      /* Remember the transaction ID so we can re-use it */
1475
1475
      uint64_t trx_id= transaction->transaction_context().transaction_id();
1722
1722
    transaction= getActiveTransactionMessage(session);
1723
1723
    
1724
1724
    if (static_cast<size_t>(transaction->ByteSize()) >= 
1725
 
        session.variables.transaction_message_threshold)
 
1725
        transaction_message_threshold)
1726
1726
    {
1727
1727
      transaction= segmentTransactionMessage(session, transaction);
1728
1728
    }
1741
1741
     * the Transaction will keep it from getting huge).
1742
1742
     */
1743
1743
    if (static_cast<size_t>(transaction->ByteSize()) >= 
1744
 
        session.variables.transaction_message_threshold)
 
1744
        transaction_message_threshold)
1745
1745
    {
1746
1746
      /* Remember the transaction ID so we can re-use it */
1747
1747
      uint64_t trx_id= transaction->transaction_context().transaction_id();