Do not lock the database while retrieving all the track features

This commit is contained in:
emeric
2019-03-10 14:13:59 +01:00
parent 99d592a71e
commit e609b239f3
6 changed files with 58 additions and 32 deletions
@@ -81,6 +81,12 @@ getJsonData(const std::string& mbid)
std::string
extractLowLevelFeatures(const std::string& mbid)
{
if (boost::filesystem::exists("/storage/emeric/lms-dev/features/" + mbid))
{
std::ifstream ifs{std::string{"/storage/emeric/lms-dev/features/" + mbid}.c_str()};
return std::string {std::istreambuf_iterator<char>{ifs}, std::istreambuf_iterator<char>{}};
}
return getJsonData(mbid);
}