durable_rules 0.34.42 → 0.34.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/rules/events.c +2 -2
- data/src/rules/net.c +6 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97c2910328458bb2a8651d71e65007572bde6d5e
|
4
|
+
data.tar.gz: c86c7a8f3a19919e23ed80195ed7b006f3d3dd1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecb34da19d75575150309085da60ab220fb602e1ebf87b64fc9cfeff70735d9e272765a7a1a43e8e5dfa6e75cc9a4463ef3a3225e662172c2a32f3f09bce22e0
|
7
|
+
data.tar.gz: bcaaae9b4e687f9bc33766ee7c84f7cec5168c9185a4449e63134c843ffd940058d6d76e6730dff0614b2c20a075c3747c7d5c4332de2632e82c5c080dd8da34
|
data/src/rules/events.c
CHANGED
@@ -815,10 +815,10 @@ static unsigned int isMatch(ruleset *tree,
|
|
815
815
|
}
|
816
816
|
break;
|
817
817
|
case OP_DOUBLE_BOOL:
|
818
|
-
*propertyMatch = compareDouble(currentProperty->value.
|
818
|
+
*propertyMatch = compareDouble(currentProperty->value.d, rightProperty->value.b, alphaOp);
|
819
819
|
break;
|
820
820
|
case OP_DOUBLE_INT:
|
821
|
-
*propertyMatch = compareDouble(currentProperty->value.
|
821
|
+
*propertyMatch = compareDouble(currentProperty->value.d, rightProperty->value.i, alphaOp);
|
822
822
|
break;
|
823
823
|
case OP_DOUBLE_DOUBLE:
|
824
824
|
*propertyMatch = compareDouble(currentProperty->value.d, rightProperty->value.d, alphaOp);
|
data/src/rules/net.c
CHANGED
@@ -584,7 +584,11 @@ static unsigned int loadDeleteSessionCommand(ruleset *tree, binding *rulesBindin
|
|
584
584
|
" redis.call(\"del\", all_keys[i])\n"
|
585
585
|
" end\n"
|
586
586
|
"end\n"
|
587
|
-
"
|
587
|
+
"local partition_key = \"%s!p\"\n"
|
588
|
+
"redis.call(\"hdel\", partition_key, ARGV[2])\n"
|
589
|
+
"if redis.call(\"hlen\", partition_key) == 1 then\n"
|
590
|
+
" redis.call(\"hdel\", partition_key, \"index\")\n"
|
591
|
+
"end\n"
|
588
592
|
"redis.call(\"hdel\", \"%s!c\", sid)\n"
|
589
593
|
"redis.call(\"hdel\", \"%s!s\", sid)\n"
|
590
594
|
"redis.call(\"hdel\", \"%s!s!v\", sid)\n"
|
@@ -1735,7 +1739,6 @@ static unsigned int loadEvalMessageCommand(ruleset *tree, binding *rulesBinding)
|
|
1735
1739
|
"local toggle\n"
|
1736
1740
|
"local expressions_count\n"
|
1737
1741
|
"local results\n"
|
1738
|
-
"local unpacked_results\n"
|
1739
1742
|
"local context\n"
|
1740
1743
|
"local keys\n"
|
1741
1744
|
"local reviewers\n"
|
@@ -1808,7 +1811,6 @@ static unsigned int loadEvalMessageCommand(ruleset *tree, binding *rulesBinding)
|
|
1808
1811
|
"end\n"
|
1809
1812
|
"local save_result = function(frame, index)\n"
|
1810
1813
|
" table.insert(results, 1, frame_packers[index](frame, true))\n"
|
1811
|
-
" table.insert(unpacked_results, 1, frame)\n"
|
1812
1814
|
" for name, message in pairs(frame) do\n"
|
1813
1815
|
" if message ~= \"$n\" and not message[\"$f\"] then\n"
|
1814
1816
|
" redis.call(\"hdel\", events_hashset, message[\"id\"])\n"
|
@@ -2066,7 +2068,6 @@ static unsigned int loadEvalMessageCommand(ruleset *tree, binding *rulesBinding)
|
|
2066
2068
|
"local process_message = function(message)\n"
|
2067
2069
|
" for index = 6, 5 + keys_count, 1 do\n"
|
2068
2070
|
" results = {}\n"
|
2069
|
-
" unpacked_results = {}\n"
|
2070
2071
|
" key = ARGV[index]\n"
|
2071
2072
|
" context = context_directory[key]\n"
|
2072
2073
|
" if context then\n"
|
@@ -2378,7 +2379,7 @@ unsigned int getBindingIndex(ruleset *tree, unsigned int sidHash, unsigned int *
|
|
2378
2379
|
sidHash,
|
2379
2380
|
list->bindingsLength);
|
2380
2381
|
redisReply *reply;
|
2381
|
-
GET_REPLY(result, "
|
2382
|
+
GET_REPLY(result, "getBindingIndex", reply);
|
2382
2383
|
|
2383
2384
|
*bindingIndex = reply->integer;
|
2384
2385
|
freeReplyObject(reply);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: durable_rules
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.34.
|
4
|
+
version: 0.34.43
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesus Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|