forked from lda/telodendria
Move where we open the database
This commit is contained in:
parent
0c6c1e5b19
commit
a0304f4062
1 changed files with 2 additions and 1 deletions
|
@ -445,7 +445,6 @@ main(int argc, char **argv)
|
||||||
tConfig->uid = NULL;
|
tConfig->uid = NULL;
|
||||||
tConfig->gid = NULL;
|
tConfig->gid = NULL;
|
||||||
|
|
||||||
matrixArgs.db = DbOpen(".", tConfig->maxCache);
|
|
||||||
|
|
||||||
if (!tConfig->maxCache)
|
if (!tConfig->maxCache)
|
||||||
{
|
{
|
||||||
|
@ -465,6 +464,8 @@ main(int argc, char **argv)
|
||||||
tConfig->maxCache = DB_MIN_CACHE;
|
tConfig->maxCache = DB_MIN_CACHE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
matrixArgs.db = DbOpen(".", tConfig->maxCache);
|
||||||
|
|
||||||
if (!matrixArgs.db)
|
if (!matrixArgs.db)
|
||||||
{
|
{
|
||||||
Log(lc, LOG_ERROR, "Unable to open data directory as a database.");
|
Log(lc, LOG_ERROR, "Unable to open data directory as a database.");
|
||||||
|
|
Loading…
Reference in a new issue