@Override public Iterator<UniquenessConstraint> constraintsGetForLabel(KernelStatement state, int labelId) { state.locks().acquireShared(ResourceTypes.SCHEMA, schemaResource()); return schemaReadDelegate.constraintsGetForLabel(state, labelId); }
@Override public Iterator<UniquenessConstraint> constraintsGetForLabel(KernelStatement state, int labelId) { state.locks().acquireSchemaReadLock(); return schemaReadDelegate.constraintsGetForLabel(state, labelId); }