Browse files

Fixing VERY stupid polarity error

  • Loading branch information...
1 parent 51baa09 commit b78702b9292be5c775a08dd964b1e90e21d77efc @ayende ayende committed Jul 24, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 Raven.Database/Indexing/IndexStorage.cs
View
6 Raven.Database/Indexing/IndexStorage.cs
@@ -89,8 +89,8 @@ protected Lucene.Net.Store.Directory OpenOrCreateLuceneDirectory(IndexDefinition
else
{
// forcefully unlock locked indexes if any
- //if (IndexWriter.IsLocked(directory))
- // IndexWriter.Unlock(directory);
+ if (IndexWriter.IsLocked(directory))
+ IndexWriter.Unlock(directory);
}
}
@@ -303,7 +303,7 @@ public void FlushReduceIndexes()
{
foreach (var value in indexes.Values)
{
- if (value.IsMapReduce)
+ if (value.IsMapReduce == false)
continue;
value.Flush();
}

0 comments on commit b78702b

Please sign in to comment.