Commit 6c86667
committed
libsql: Fail sync_db_if_needed() if database exists but metadata is missing
This is an inconsistent state because there is no way for us to know
what generation the database file is tracking. For all we know, it could
be a totally unrelated database file than the one we have remotely.
Therefore, return an error.1 parent 70c9bbc commit 6c86667
1 file changed
Lines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
671 | 669 | | |
672 | 670 | | |
673 | 671 | | |
| |||
0 commit comments