db/simple: move Create() up
This commit is contained in:
parent
cb145d290e
commit
6b66e86f40
@ -53,6 +53,10 @@ class SimpleDatabase : public Database {
|
||||
SimpleDatabase();
|
||||
|
||||
public:
|
||||
static Database *Create(EventLoop &loop, DatabaseListener &listener,
|
||||
const config_param ¶m,
|
||||
Error &error);
|
||||
|
||||
gcc_pure
|
||||
Directory *GetRoot() {
|
||||
assert(root != NULL);
|
||||
@ -69,10 +73,6 @@ public:
|
||||
return mtime > 0;
|
||||
}
|
||||
|
||||
static Database *Create(EventLoop &loop, DatabaseListener &listener,
|
||||
const config_param ¶m,
|
||||
Error &error);
|
||||
|
||||
virtual bool Open(Error &error) override;
|
||||
virtual void Close() override;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user