コード例 #1
0
 @Override
 public void constraintDrop(KernelStatement state, UniquenessConstraint constraint)
     throws DropConstraintFailureException {
   state.locks().acquireExclusive(ResourceTypes.SCHEMA, schemaResource());
   schemaWriteDelegate.constraintDrop(state, constraint);
 }
コード例 #2
0
 @Override
 public void constraintDrop(KernelStatement state, UniquenessConstraint constraint)
     throws DropConstraintFailureException {
   state.locks().acquireSchemaWriteLock();
   schemaWriteDelegate.constraintDrop(state, constraint);
 }