Commit By: lxs Log Message: ticket: new subject: ccs_lock_status_grant_lock granting wrong lock 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. Changed Files: U trunk/src/ccapi/server/ccs_lock_state.c