~vkolesnikov/pbxt/pbxt-preload-test-bug

« back to all changes in this revision

Viewing changes to src/xaction_xt.cc

  • Committer: Paul McCullagh
  • Date: 2009-11-11 10:20:47 UTC
  • Revision ID: paul.mccullagh@primebase.org-20091111102047-r67bigvvfjzk2qbm
Further changes for Drizzle (thanks Padraig)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1446
1446
                        wait_xn_id = thread->st_prev_xact[thread->st_last_xact];
1447
1447
                        thread->st_prev_xact[thread->st_last_xact] = xn_id;
1448
1448
                        /* This works because XT_MAX_XACT_BEHIND == 2! */
1449
 
                        ASSERT_NS((thread->st_last_xact + 1) % XT_MAX_XACT_BEHIND == thread->st_last_xact ^ 1);
 
1449
                        ASSERT_NS((thread->st_last_xact + 1) % XT_MAX_XACT_BEHIND == (thread->st_last_xact ^ 1));
1450
1450
                        thread->st_last_xact ^= 1;
1451
1451
                        while (xt_xn_is_before(db->db_xn_to_clean_id, wait_xn_id) && (db->db_sw_faster & XT_SW_TOO_FAR_BEHIND)) {
1452
1452
                                xt_critical_wait();