mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-28 01:31:05 -06:00
simplify command template prefix
This commit is contained in:
parent
480db201fe
commit
6fb23b7bab
@ -28,7 +28,9 @@ public class CommandTemplate {
|
||||
|
||||
public CommandTemplate(StmtDef stmt, boolean canonicalize) {
|
||||
this.name = stmt.getName();
|
||||
String prefixed = "command=" + stmt.getStmt();
|
||||
String prefixed = stmt.getStmt();
|
||||
prefixed = (prefixed.startsWith("command=") ? prefixed : "command=" + prefixed);
|
||||
|
||||
Map<String,String> cmdMap = ParamsParser.parse(prefixed, canonicalize);
|
||||
Map<String, String> paramsMap = stmt.getParamsAsValueType(String.class);
|
||||
paramsMap.forEach((k,v) -> {
|
||||
|
Loading…
Reference in New Issue
Block a user