db/Interface: Open() throws exception on error

This commit is contained in:
Max Kellermann
2016-03-18 22:17:46 +01:00
parent 6c2b532ae3
commit f55bdf07d3
7 changed files with 15 additions and 27 deletions

View File

@@ -113,7 +113,7 @@ public:
const ConfigBlock &block,
Error &error);
virtual bool Open(Error &error) override;
virtual void Open() override;
virtual void Close() override;
virtual const LightSong *GetSong(const char *uri_utf8,
Error &error) const override;
@@ -362,14 +362,12 @@ ProxyDatabase::Configure(const ConfigBlock &block, gcc_unused Error &error)
return true;
}
bool
ProxyDatabase::Open(gcc_unused Error &error)
void
ProxyDatabase::Open()
{
Connect();
update_stamp = 0;
return true;
}
void