forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 0a9927d
Avoid locking the database for non-SQLite backends (home-assistant#63847)
* Avoid locking the database for non-SQLite backends
Currently we only have a lock implementation for SQLite. Just return
success for all other databases as they are not expected to store data
in the config directory and the caller can assume that a backup can
be safely taken.
This fixes `RuntimeError: generator didn't yield` errors when creating
a backup with the current Supervisor dev builds.1 parent f2a6118 commit 0a9927d
File tree
4 files changed
+52
-18
lines changed- homeassistant/components/recorder
- tests/components/recorder
4 files changed
+52
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | - | ||
81 | + | ||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
873 | - | ||
873 | + | ||
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
| |||
1057 | 1057 | | |
1058 | 1058 | | |
1059 | 1059 | | |
1060 | + | ||
1061 | + | ||
1062 | + | ||
1063 | + | ||
1064 | + | ||
1065 | + | ||
1060 | 1066 | | |
1061 | 1067 | | |
1062 | 1068 | | |
| |||
1080 | 1086 | | |
1081 | 1087 | | |
1082 | 1088 | | |
1089 | + | ||
1090 | + | ||
1091 | + | ||
1092 | + | ||
1093 | + | ||
1094 | + | ||
1083 | 1095 | | |
1084 | 1096 | | |
1085 | 1097 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | - | ||
465 | + | ||
466 | 466 | | |
467 | 467 | | |
468 | - | ||
469 | - | ||
470 | - | ||
471 | - | ||
472 | - | ||
473 | - | ||
474 | - | ||
475 | - | ||
476 | - | ||
477 | - | ||
478 | - | ||
479 | - | ||
480 | - | ||
468 | + | ||
469 | + | ||
470 | + | ||
471 | + | ||
472 | + | ||
473 | + | ||
474 | + | ||
475 | + | ||
476 | + | ||
477 | + | ||
478 | + | ||
479 | + | ||
481 | 480 | | |
482 | 481 | | |
483 | 482 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | + | ||
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
1204 | 1205 | | |
1205 | 1206 | | |
1206 | 1207 | | |
1207 | - | ||
1208 | 1208 | | |
1209 | 1209 | | |
1210 | + | ||
1211 | + | ||
1212 | + | ||
1213 | + | ||
1214 | + | ||
1215 | + | ||
1216 | + | ||
1217 | + | ||
1218 | + | ||
1210 | 1219 | | |
1211 | 1220 | | |
1212 | 1221 | | |
1213 | 1222 | | |
1214 | 1223 | | |
1215 | 1224 | | |
1225 | + | ||
1226 | + | ||
1227 | + | ||
1228 | + | ||
1229 | + | ||
1230 | + | ||
1231 | + | ||
1232 | + | ||
1233 | + | ||
1234 | + | ||
1235 | + | ||
1236 | + | ||
1237 | + | ||
1238 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | - | ||
573 | + | ||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| |||
0 commit comments