@iobroker/db-base 4.0.17 → 4.1.0-alpha.10-20220312-cb53b8bb
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.
- package/lib/inMemFileDB.js +2 -2
- package/lib/redisHandler.js +4 -1
- package/package.json +4 -4
package/lib/inMemFileDB.js
CHANGED
|
@@ -79,12 +79,12 @@ class InMemoryFileDB {
|
|
|
79
79
|
|
|
80
80
|
this.backupDir = this.settings.backup.path || path.join(this.dataDir, this.settings.fileDB.backupDirName);
|
|
81
81
|
|
|
82
|
+
this.log = tools.getLogger(this.settings.logger);
|
|
83
|
+
|
|
82
84
|
if (!this.settings.backup.disabled) {
|
|
83
85
|
this.initBackupDir();
|
|
84
86
|
}
|
|
85
87
|
|
|
86
|
-
this.log = tools.getLogger(this.settings.logger);
|
|
87
|
-
|
|
88
88
|
this.log.debug(`${this.namespace} Data File: ${this.datasetName}`);
|
|
89
89
|
}
|
|
90
90
|
|
package/lib/redisHandler.js
CHANGED
|
@@ -464,7 +464,10 @@ class RedisHandler extends EventEmitter {
|
|
|
464
464
|
_handleMultiResponse(responseId, index, buf) {
|
|
465
465
|
this.activeMultiCalls[index].responseMap.set(responseId, buf);
|
|
466
466
|
this.activeMultiCalls[index].responseCount++;
|
|
467
|
-
if (
|
|
467
|
+
if (
|
|
468
|
+
this.activeMultiCalls[index].execCalled &&
|
|
469
|
+
this.activeMultiCalls[index].responseCount === this.activeMultiCalls[index].responseIds.length
|
|
470
|
+
) {
|
|
468
471
|
const multiRespObj = this.activeMultiCalls.splice(index, 1)[0];
|
|
469
472
|
this._sendExecResponse(multiRespObj);
|
|
470
473
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/db-base",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.1.0-alpha.10-20220312-cb53b8bb",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=12.0.0"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@iobroker/js-controller-common": "4.0.
|
|
8
|
+
"@iobroker/js-controller-common": "4.1.0-alpha.10-20220312-cb53b8bb",
|
|
9
9
|
"deep-clone": "^3.0.3",
|
|
10
|
-
"fs-extra": "^10.0.
|
|
10
|
+
"fs-extra": "^10.0.1",
|
|
11
11
|
"respjs": "^4.2.0"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"lib/",
|
|
36
36
|
"index.js"
|
|
37
37
|
],
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "c17064149aa818ae28d33f77d14c591174a72287"
|
|
39
39
|
}
|