~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/lock.cc

  • Committer: Brian Aker
  • Date: 2008-07-18 22:05:16 UTC
  • Revision ID: brian@tangent.org-20080718220516-dzyjle0iqqjssphx
Dead debug code removal (and a compatible "never used") bit in the
optimizer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
853
853
        return(0);
854
854
      }
855
855
    }
856
 
    THR_LOCK_DATA **org_locks = locks;
857
856
    locks_start= locks;
858
857
    locks= table->file->store_lock(thd, locks,
859
858
                                   (flags & GET_LOCK_UNLOCK) ? TL_IGNORE :
865
864
      table->lock_count=      (uint) (locks - locks_start);
866
865
    }
867
866
    *to++= table;
868
 
    if (locks)
869
 
      for ( ; org_locks != locks ; org_locks++)
870
 
        (*org_locks)->debug_print_param= (void *) table;
871
867
  }
872
868
  /*
873
869
    We do not use 'tables', because there are cases where store_lock()