@iobroker/db-objects-redis 4.0.4 → 4.0.5
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,9 +4412,10 @@ class ObjectsInRedisClient {
|
|
|
4412
4412
|
script.loaded = true;
|
|
4413
4413
|
} catch (e) {
|
|
4414
4414
|
script.loaded = false;
|
|
4415
|
-
this.log.error(this.namespace
|
|
4415
|
+
this.log.error(`${this.namespace} Cannot load "${script.name}": ${e.message}`);
|
|
4416
4416
|
if (!script.name.startsWith('redlock_')) {
|
|
4417
|
-
//
|
|
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
|
|
4418
4419
|
throw new Error(`Cannot load "${script.name}" into objects database: ${e.message}`);
|
|
4419
4420
|
}
|
|
4420
4421
|
}
|
|
@@ -4656,8 +4657,8 @@ class ObjectsInRedisClient {
|
|
|
4656
4657
|
* @return {Promise<void>}
|
|
4657
4658
|
*/
|
|
4658
4659
|
async activateSets() {
|
|
4659
|
-
this.useSets = true;
|
|
4660
4660
|
await this.client.set(`${this.metaNamespace}objects.features.useSets`, '1');
|
|
4661
|
+
this.useSets = true;
|
|
4661
4662
|
}
|
|
4662
4663
|
|
|
4663
4664
|
/**
|
|
@@ -4665,8 +4666,8 @@ class ObjectsInRedisClient {
|
|
|
4665
4666
|
* @return {Promise<void>}
|
|
4666
4667
|
*/
|
|
4667
4668
|
async deactivateSets() {
|
|
4668
|
-
this.useSets = false;
|
|
4669
4669
|
await this.client.set(`${this.metaNamespace}objects.features.useSets`, '0');
|
|
4670
|
+
this.useSets = false;
|
|
4670
4671
|
}
|
|
4671
4672
|
|
|
4672
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",
|
|
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",
|
|
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": "ba55e7d15a1e68e18d03254d0fa8030d7f785651"
|
|
40
40
|
}
|