syncbase: BeginBatch() bugfix and restartability TODOs

This CL addresses a few issues uncovered by jlodhia@.

- Makes it so that Database.BeginBatch() fails gracefully if
  the database does not exist (and adds a test).
- Restores the general mechanism for tracking existence in server's
  app/db structs, to prevent this problem from recurring elsewhere.
- Adds TODOs for supporting restartability by making service.apps
  and app.dbs act like lazily-populated caches.

Change-Id: I788d6681c322cd8bc43472b4faa4663235d240c2
4 files changed
tree: 026d5b3119ebf9897cc3a6a63d4774ba3326f2f4
  1. v23/
  2. x/
  3. .gitignore
  4. AUTHORS
  5. CONTRIBUTORS
  6. LICENSE
  7. PATENTS
  8. VERSION