diff options
| author | luqiuwen <[email protected]> | 2019-01-17 19:08:34 +0600 |
|---|---|---|
| committer | luqiuwen <[email protected]> | 2019-01-17 19:08:34 +0600 |
| commit | f47f133b11b377009ede396bd8db83cd5fd69cdb (patch) | |
| tree | d024b17e87e1ffe5e07aa546b7869711b314bc2c | |
| parent | 969d4f06f36bbf20d9186e4afda98f661fe16290 (diff) | |
修正读入hashmode配置项错误判断边界值的问题v4.3.6-20190117
| -rw-r--r-- | service/src/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/src/core.c b/service/src/core.c index 65156ad..e1dda1e 100644 --- a/service/src/core.c +++ b/service/src/core.c @@ -439,7 +439,7 @@ static int sc_distributer_init(struct sc_main * sc) return RT_ERR; } - if (hashmode < 0 || distmode >= LDBC_HASH_MAX) + if (hashmode < 0 || hashmode >= LDBC_HASH_MAX) { MR_CFGERR_INVALID_FORMAT(sc->local_cfgfile, "service", "hashmode"); return RT_ERR; |
