@iobroker/db-objects-redis 4.0.3 → 4.0.5-alpha.2-20220208-ac4cf51e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4412,8 +4412,12 @@ class ObjectsInRedisClient {
|
|
|
4412
4412
|
script.loaded = true;
|
|
4413
4413
|
} catch (e) {
|
|
4414
4414
|
script.loaded = false;
|
|
4415
|
-
this.log.error(this.namespace
|
|
4416
|
-
|
|
4415
|
+
this.log.error(`${this.namespace} Cannot load "${script.name}": ${e.message}`);
|
|
4416
|
+
if (!script.name.startsWith('redlock_')) {
|
|
4417
|
+
// beause of #1753 an upgrade from < 4.0 will run against the old db server which will not know redlock
|
|
4418
|
+
// TODO: remove if controller 4.0 is old enough
|
|
4419
|
+
throw new Error(`Cannot load "${script.name}" into objects database: ${e.message}`);
|
|
4420
|
+
}
|
|
4417
4421
|
}
|
|
4418
4422
|
script.hash = hash;
|
|
4419
4423
|
}
|
|
@@ -4653,8 +4657,8 @@ class ObjectsInRedisClient {
|
|
|
4653
4657
|
* @return {Promise<void>}
|
|
4654
4658
|
*/
|
|
4655
4659
|
async activateSets() {
|
|
4656
|
-
this.useSets = true;
|
|
4657
4660
|
await this.client.set(`${this.metaNamespace}objects.features.useSets`, '1');
|
|
4661
|
+
this.useSets = true;
|
|
4658
4662
|
}
|
|
4659
4663
|
|
|
4660
4664
|
/**
|
|
@@ -4662,8 +4666,8 @@ class ObjectsInRedisClient {
|
|
|
4662
4666
|
* @return {Promise<void>}
|
|
4663
4667
|
*/
|
|
4664
4668
|
async deactivateSets() {
|
|
4665
|
-
this.useSets = false;
|
|
4666
4669
|
await this.client.set(`${this.metaNamespace}objects.features.useSets`, '0');
|
|
4670
|
+
this.useSets = false;
|
|
4667
4671
|
}
|
|
4668
4672
|
|
|
4669
4673
|
/**
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/db-objects-redis",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5-alpha.2-20220208-ac4cf51e",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=12.0.0"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@iobroker/db-base": "4.0.
|
|
8
|
+
"@iobroker/db-base": "4.0.5-alpha.2-20220208-ac4cf51e",
|
|
9
9
|
"deep-clone": "^3.0.3",
|
|
10
10
|
"ioredis": "^4.28.2",
|
|
11
11
|
"node.extend": "^2.0.2",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"lib/",
|
|
37
37
|
"index.js"
|
|
38
38
|
],
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "164e97c24ac7094a4442a3d44268e2b480db1171"
|
|
40
40
|
}
|