提交 76c45fe4 authored 作者: Thomas Mueller's avatar Thomas Mueller

With the MVStore option, when using multiple threads that concurrently create…

With the MVStore option, when using multiple threads that concurrently create indexes or tables, it was relatively easy to get a lock timeout on the "SYS" table.
上级 57863eee
...@@ -208,7 +208,7 @@ public class MVSecondaryIndex extends BaseIndex implements MVIndex { ...@@ -208,7 +208,7 @@ public class MVSecondaryIndex extends BaseIndex implements MVIndex {
try { try {
map.put(array, ValueNull.INSTANCE); map.put(array, ValueNull.INSTANCE);
} catch (IllegalStateException e) { } catch (IllegalStateException e) {
throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1, throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1,
e, table.getName()); e, table.getName());
} }
if (indexType.isUnique()) { if (indexType.isUnique()) {
...@@ -246,7 +246,7 @@ public class MVSecondaryIndex extends BaseIndex implements MVIndex { ...@@ -246,7 +246,7 @@ public class MVSecondaryIndex extends BaseIndex implements MVIndex {
getSQL() + ": " + row.getKey()); getSQL() + ": " + row.getKey());
} }
} catch (IllegalStateException e) { } catch (IllegalStateException e) {
throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1, throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1,
e, table.getName()); e, table.getName());
} }
} }
......
...@@ -137,7 +137,7 @@ public class MVSpatialIndex extends BaseIndex implements SpatialIndex, MVIndex { ...@@ -137,7 +137,7 @@ public class MVSpatialIndex extends BaseIndex implements SpatialIndex, MVIndex {
try { try {
map.put(key, ValueLong.get(0)); map.put(key, ValueLong.get(0));
} catch (IllegalStateException e) { } catch (IllegalStateException e) {
throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1, throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1,
e, table.getName()); e, table.getName());
} }
if (indexType.isUnique()) { if (indexType.isUnique()) {
...@@ -184,7 +184,7 @@ public class MVSpatialIndex extends BaseIndex implements SpatialIndex, MVIndex { ...@@ -184,7 +184,7 @@ public class MVSpatialIndex extends BaseIndex implements SpatialIndex, MVIndex {
getSQL() + ": " + row.getKey()); getSQL() + ": " + row.getKey());
} }
} catch (IllegalStateException e) { } catch (IllegalStateException e) {
throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1, throw DbException.get(ErrorCode.CONCURRENT_UPDATE_1,
e, table.getName()); e, table.getName());
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论