server/lib/sync-protocol-handler.js
function ensureLock(client, path) {
  var lock = client.lock;
  if(!(lock && !('unlocked' in lock))) {
    // Create an error so we get a stack, too.
    var err = new Error('Attempted sync step without lock.');
    log.error({client: client, err: err}, 'Client should own lock but does not for ' + path);
    return false;
  }
  return true;
}
function ensureLock(client, path) {
  var lock = client.lock;
  if(!(lock && !('unlocked' in lock))) {
    // Create an error so we get a stack, too.
    var err = new Error('Attempted sync step without lock.');
    log.error({client: client, err: err}, 'Client should own lock but does not for ' + path);
    return false;
  }
  return true;
}
function ensureLock ( client , path ) { var lock = client . lock ; if ( ! ( lock && ! ( 'unlocked' in lock ) ) ) { // Create an error so we get a stack, too. var err = new Error ( 'Attempted sync step without lock.' ) ; log . error ( { client : client , err : err } , 'Client should own lock but does not for ' + path ) ; return false ; } return true ; }
Most upstream sync steps require a lock to be held. It's a bug if we get into one of these steps without the lock.
Most upstream sync steps require a lock to be held . It s a bug if we get into one of these steps without the lock .