Commit c7654a9
committed
Revert to creating index asynchronously
Creating the index synchronously was required to get an up to version of
its settings, in order to compare them to the user configuration and
decide whether or not to update settings. Unfortunately this made
practically every operation have a synchronous component causing a lot
of problems down the line.
This commit reverts to using create_index asynchronously to avoid said
issues, and represents the settings of a nonexistent index as an empty
hash, which will queue an update_settings if the user has specified any
settings at all.1 parent 29f59c8 commit c7654a9
2 files changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1136 | 1136 | | |
1137 | 1137 | | |
1138 | 1138 | | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
1139 | 1144 | | |
1140 | 1145 | | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | 1146 | | |
1145 | 1147 | | |
1146 | 1148 | | |
1147 | 1149 | | |
1148 | 1150 | | |
1149 | 1151 | | |
1150 | 1152 | | |
1151 | | - | |
1152 | 1153 | | |
1153 | 1154 | | |
1154 | | - | |
1155 | | - | |
1156 | 1155 | | |
1157 | 1156 | | |
1158 | 1157 | | |
| |||
0 commit comments