Streams: use non static macro node limits.

Also add the concept of size/items limit, instead of just having as
limit the number of bytes.
This commit is contained in:
antirez
2018-06-07 14:24:45 +02:00
parent c85ae56edc
commit 19a438e2c0
4 changed files with 28 additions and 2 deletions

View File

@ -1485,6 +1485,8 @@ void initServerConfig(void) {
server.zset_max_ziplist_entries = OBJ_ZSET_MAX_ZIPLIST_ENTRIES;
server.zset_max_ziplist_value = OBJ_ZSET_MAX_ZIPLIST_VALUE;
server.hll_sparse_max_bytes = CONFIG_DEFAULT_HLL_SPARSE_MAX_BYTES;
server.stream_node_max_bytes = OBJ_STREAM_NODE_MAX_BYTES;
server.stream_node_max_entries = OBJ_STREAM_NODE_MAX_ENTRIES;
server.shutdown_asap = 0;
server.cluster_enabled = 0;
server.cluster_node_timeout = CLUSTER_DEFAULT_NODE_TIMEOUT;