From 9dcb4f1a921c354f1484177355e18263574df7f6 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 19 Mar 2016 08:44:55 -0400 Subject: [PATCH] Database: Added important note about indexing latest data file --- src/Database.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Database.cpp b/src/Database.cpp index bae77e21..924fdd76 100644 --- a/src/Database.cpp +++ b/src/Database.cpp @@ -35,6 +35,8 @@ void Database::initialize (const std::string& location) { _location = location; + + // _data_files[0] is always the current one, which may not exist. _current = currentDataFile (); _data_files.push_back (_current);