SOLR-9735: validation of all input values to either string or long

This commit is contained in:
Noble Paul 2017-06-02 23:28:53 +09:30
parent 4e691f9e4a
commit 2a625dfb1f
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class Row implements MapWriter {
if (replicas == null) c.put(shard, replicas = new ArrayList<>());
replicas.add(new ReplicaInfo("" + new Random().nextInt(1000) + 1000, coll, shard, new HashMap<>()));
for (Cell cell : row.cells) {
if (cell.name.equals("cores")) cell.val = ((Number) cell.val).intValue() + 1;
if (cell.name.equals("cores")) cell.val = ((Number) cell.val).longValue() + 1;
}
return row;