ccs_lock_status_grant_lock sometimes tries to grant the wrong lock because it is not keeping track of where it got moved to. Reorganized code so it is easier to read and doesn't look up the lock twice. Commit By: lxs Revision: 20116 Changed Files: U trunk/src/ccapi/server/ccs_lock_state.c