Skip to content

Commit

Permalink
Making sure that we will cleanup the write marker after we did the co…
Browse files Browse the repository at this point in the history
…mplete index cleanup
  • Loading branch information
ayende committed Aug 2, 2012
1 parent c8ed4e9 commit f09e6a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Raven.Database/Indexing/IndexStorage.cs
Expand Up @@ -166,6 +166,8 @@ private void OpenIndexOnStartup(DocumentDatabase documentDatabase, string indexN

CheckIndexAndRecover(directory, indexDirectory);
IndexWriter.Unlock(directory);
// for some reason, just calling unlock doesn't remove this file
directory.DeleteFile("write.lock");
}
}
}
Expand Down

0 comments on commit f09e6a0

Please sign in to comment.