Skip to content

Commit

Permalink
fix '~task_status' not indexed in label '~task'
Browse files Browse the repository at this point in the history
Change-Id: I6383df825a003ff0e3f619398ee7c2873194eb56
  • Loading branch information
javeme committed Jun 6, 2022
1 parent 327acae commit cdac3ef
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,21 +415,22 @@ protected void addSchema(SchemaElement schema) {

private void saveSchema(SchemaElement schema, boolean update,
Consumer<SchemaElement> updateCallback) {
// System schema just put into SystemSchemaStore in memory
if (schema.longId() < 0L) {
this.systemSchemaStore.add(schema);
return;
}

// Lock for schema update
LockUtil.Locks locks = new LockUtil.Locks(this.params().name());
try {
locks.lockWrites(LockUtil.hugeType2Group(schema.type()),
schema.id());
locks.lockWrites(LockUtil.hugeType2Group(schema.type()), schema.id());

if (updateCallback != null) {
// NOTE: Do schema update in the lock block
updateCallback.accept(schema);
}

// System schema just put into SystemSchemaStore in memory
if (schema.longId() < 0L) {
this.systemSchemaStore.add(schema);
return;
}

BackendEntry entry = this.serialize(schema);

this.beforeWrite();
Expand Down

0 comments on commit cdac3ef

Please sign in to comment.