Fixed folder support

This commit is contained in:
Erik Zandvliet 2015-04-07 14:39:39 +02:00
parent 514f0a9b2b
commit d296ac60bb
2 changed files with 10 additions and 3 deletions

View file

@ -271,7 +271,9 @@ namespace Mist {
configLock.post();
//Stream metadata not found - attempt to start it
if (Util::startInput(streamName)){
streamIndex.init(streamName, DEFAULT_META_PAGE_SIZE);
char streamPageName[NAME_BUFFER_SIZE];
snprintf(streamPageName, NAME_BUFFER_SIZE, SHM_STREAM_INDEX, streamName.c_str());
streamIndex.init(streamPageName, DEFAULT_META_PAGE_SIZE);
if (streamIndex.mapped){
metaLock = true;
metaLocker.wait();