Fossil

Check-in [c0eca1f9]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Give a fatal error, not a panic, if unable to open the database file.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c0eca1f94ca69cb333c55ab3df8efc09af075dfa8aeb2357c7a1818a90c54870
User & Date: drh 2019-01-15 19:41:08
Context
2019-01-16
00:11
Detect when the repository associated with a check-out has been swapped out for a clone with different RID values, and give the user a warning. Still to do: automatically recover. check-in: 1b114d24 user: drh tags: trunk
2019-01-15
19:41
Give a fatal error, not a panic, if unable to open the database file. check-in: c0eca1f9 user: drh tags: trunk
00:02
Fix typo in the TH1 wiki page. check-in: 049813ac user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/db.c.

84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
  else
#endif /* FOSSIL_ENABLE_JSON */
  if( g.xferPanic && g.cgiOutput==1 ){
    cgi_reset_content();
    @ error Database\serror:\s%F(z)
    cgi_reply();
  }
  fossil_panic("Database error: %s", z);
}

/*
** All static variable that a used by only this file are gathered into
** the following structure.
*/
static struct DbLocalData {







|







84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
  else
#endif /* FOSSIL_ENABLE_JSON */
  if( g.xferPanic && g.cgiOutput==1 ){
    cgi_reset_content();
    @ error Database\serror:\s%F(z)
    cgi_reply();
  }
  fossil_fatal("Database error: %s", z);
}

/*
** All static variable that a used by only this file are gathered into
** the following structure.
*/
static struct DbLocalData {