Commit 630c55f
committed
libsql: Fix SyncContext::new() metadata reading
If we fail to read the metadata file, we must return an error. Resetting
the metadata leads to inconsistent state because you have no way to tell
what the database represents.1 parent 5672a1a commit 630c55f
1 file changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
180 | 177 | | |
181 | | - | |
182 | 178 | | |
183 | 179 | | |
184 | 180 | | |
| |||
0 commit comments