Permalink
Browse files

close/reopen collection db after initial creation to force a flush

  • Loading branch information...
RJ committed Sep 8, 2009
1 parent 9d7cc9c commit 22e7015b954d5eca5ecdf59bbbad8901c11f6e89
Showing with 2 additions and 1 deletion.
  1. +2 −1 resolvers/local/library.cpp
@@ -101,7 +101,8 @@ Library::create_db_schema()
sqlite3pp::command cmd(m_db, s.c_str());
cmd.execute();
}
- cout << "Schema created." << endl;
+ cout << "Schema created, reopening." << endl;
+ m_db.connect( m_dbfilepath.c_str() ); // this will close/flush and reopen
}
bool

0 comments on commit 22e7015

Please sign in to comment.