Better logic for finding pages
minor
Merge branch 'New3' of github.com:ayende/ravendb into New3
Merge commit '9a4a5ee27341434a270c861ffffc4a86d15c5fee' into New3

Conflicts:
	Raven.Voron/.gitignore
	Raven.Voron/Performance.Comparison/.nuget/NuGet.Config
	Raven.Voron/Performance.Comparison/.nuget/NuGet.targets
	Raven.Voron/Performance.Comparison/FreeDB.Playground/ClassDiagram1.cd
	Raven.Voron/Performance.Comparison/FreeDB.Playground/DisksDestination.cs
	Raven.Voron/Performance.Comparison/FreeDB.Playground/EntryDestination.cs
	Raven.Voron/Performance.Comparison/FreeDB.Playground/FreeDB.Playground.csproj
	Raven.Voron/Performance.Comparison/FreeDB.Playground/FreeDbQueries.cs
	Raven.Voron/Performance.Comparison/FreeDB.Playground/GzipFileParser.cs
	Raven.Voron/Performance.Comparison/FreeDB.Playground/JsonFileDisksDestination.cs
	Raven.Voron/Performance.Comparison/FreeDB.Playground/NullDisksDestination.cs
	Raven.Voron/Performance.Comparison/FreeDB.Playground/Program.cs
	Raven.Voron/Performance.Comparison/FreeDB.Playground/Properties/AssemblyInfo.cs
	Raven.Voron/Performance.Comparison/FreeDB.Playground/VoronDisksDestination.cs
	Raven.Voron/Performance.Comparison/FreeDB.Playground/VoronEntriesDestination.cs
	Raven.Voron/Performance.Comparison/FreeDB.Playground/XmcdFileParser.cs
	Raven.Voron/Performance.Comparison/FreeDB.Playground/app.config
	Raven.Voron/Performance.Comparison/FreeDB.Playground/packages.config
	Raven.Voron/Performance.Comparison/Other/LMDB/Makefile
	Raven.Voron/Performance.Comparison/Other/LMDB/lmdb_perf_test.cpp
	Raven.Voron/Performance.Comparison/Other/LevelDB/Makefile
	Raven.Voron/Performance.Comparison/Other/LevelDB/leveldb_perf_test.cpp
	Raven.Voron/Performance.Comparison/Performance.Comparison.sln
	Raven.Voron/Performance.Comparison/Performance.Comparison/Constants.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/Esent/Configurator.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/Esent/EsentTest.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/FoundationDB/FdbTest.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/IStoragePerformanceTest.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/LMDB/LmdbTest.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/ParallelTestData.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/PerfTracker.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/Performance.Comparison.csproj
	Raven.Voron/Performance.Comparison/Performance.Comparison/PerformanceRecord.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/Program.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/Properties/AssemblyInfo.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/SQLCE/SqlCeTest.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/SQLServer/SqlServerTest.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/SQLite/SqlLiteTest.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/StoragePerformanceTestBase.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/TestData.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/Voron/VoronTest.cs
	Raven.Voron/Performance.Comparison/Performance.Comparison/app.config
	Raven.Voron/Performance.Comparison/Performance.Comparison/fdb.cluster
	Raven.Voron/Performance.Comparison/Performance.Comparison/packages.config
	Raven.Voron/Voron.Benchmark/Program.cs
	Raven.Voron/Voron.Benchmark/Voron.Benchmark.csproj
	Raven.Voron/Voron.Benchmark/app.manifest
	Raven.Voron/Voron.Tests/Backup/CanBackupData.cs
	Raven.Voron/Voron.Tests/Backups/Full.cs
	Raven.Voron/Voron.Tests/Backups/Incremental.cs
	Raven.Voron/Voron.Tests/Bugs/ChecksumMismatchAfterRecovery.cs
	Raven.Voron/Voron.Tests/Bugs/Data/data.txt
	Raven.Voron/Voron.Tests/Bugs/Data/data2.txt
	Raven.Voron/Voron.Tests/Bugs/Data/non-leaf-page-seq-id-large-values-2.txt
	Raven.Voron/Voron.Tests/Bugs/Data/non-leaf-page-seq-id-large-values.txt
	Raven.Voron/Voron.Tests/Bugs/Deletes.cs
	Raven.Voron/Voron.Tests/Bugs/EmptyTree.cs
	Raven.Voron/Voron.Tests/Bugs/FlushingToDataFile.cs
	Raven.Voron/Voron.Tests/Bugs/IndexPointToNonLeafPageTests.cs
	Raven.Voron/Voron.Tests/Bugs/LargeValues.cs
	Raven.Voron/Voron.Tests/Bugs/MultiAdds.cs
	Raven.Voron/Voron.Tests/Bugs/PageSplitter.cs
	Raven.Voron/Voron.Tests/Bugs/Recovery.cs
	Raven.Voron/Voron.Tests/Bugs/RecoveryMultipleJournals.cs
	Raven.Voron/Voron.Tests/Bugs/RecoveryWithManualFlush.cs
	Raven.Voron/Voron.Tests/Bugs/Snapshots.cs
	Raven.Voron/Voron.Tests/Bugs/TreeRebalancer.cs
	Raven.Voron/Voron.Tests/Bugs/UpdateLastItem.cs
	Raven.Voron/Voron.Tests/Bugs/Versioning.cs
	Raven.Voron/Voron.Tests/DebugJournalTest.cs
	Raven.Voron/Voron.Tests/Impl/ConsecutiveSequencesTests.cs
	Raven.Voron/Voron.Tests/Journal/BasicActions.cs
	Raven.Voron/Voron.Tests/Journal/EdgeCases.cs
	Raven.Voron/Voron.Tests/Journal/Mvcc.cs
	Raven.Voron/Voron.Tests/Journal/UncommittedTransactions.cs
	Raven.Voron/Voron.Tests/MultiValueTree.cs
	Raven.Voron/Voron.Tests/Optimizations/Writes.cs
	Raven.Voron/Voron.Tests/Storage/Batches.cs
	Raven.Voron/Voron.Tests/Storage/BigValue.cs
	Raven.Voron/Voron.Tests/Storage/Concurrency.cs
	Raven.Voron/Voron.Tests/Storage/FreeScratchPages.cs
	Raven.Voron/Voron.Tests/Storage/MultiTransactions.cs
	Raven.Voron/Voron.Tests/Storage/Pagers.cs
	Raven.Voron/Voron.Tests/Storage/Quotas.cs
	Raven.Voron/Voron.Tests/Storage/Restarts.cs
	Raven.Voron/Voron.Tests/Storage/Snapshots.cs
	Raven.Voron/Voron.Tests/Storage/SplittingVeryBig.cs
	Raven.Voron/Voron.Tests/Storage/VeryBig.cs
	Raven.Voron/Voron.Tests/StorageTest.cs
	Raven.Voron/Voron.Tests/Trees/Basic.cs
	Raven.Voron/Voron.Tests/Trees/CanIterateBackward.cs
	Raven.Voron/Voron.Tests/Trees/Deletes.cs
	Raven.Voron/Voron.Tests/Trees/FreeSpaceTest.cs
	Raven.Voron/Voron.Tests/Trees/ItemsCount.cs
	Raven.Voron/Voron.Tests/Trees/Iteration.cs
	Raven.Voron/Voron.Tests/Trees/MultipleTrees.cs
	Raven.Voron/Voron.Tests/Trees/Rebalance.cs
	Raven.Voron/Voron.Tests/Trees/Updates.cs
	Raven.Voron/Voron.Tests/Util/CrcTests.cs
	Raven.Voron/Voron.Tests/Util/ImmutableAppendOnlyTests.cs
	Raven.Voron/Voron.Tests/Voron.Tests.csproj
	Raven.Voron/Voron.Tests/packages.config
	Raven.Voron/Voron.Tryout/Program.cs
	Raven.Voron/Voron.Tryout/Properties/AssemblyInfo.cs
	Raven.Voron/Voron.Tryout/Voron.Tryout.csproj
	Raven.Voron/Voron/Debugging/DebugStuff.cs
	Raven.Voron/Voron/Debugging/EnvironmentStats.cs
	Raven.Voron/Voron/Debugging/TreeDumper.cs
	Raven.Voron/Voron/Exceptions/DiskFullException.cs
	Raven.Voron/Voron/Exceptions/QuotaException.cs
	Raven.Voron/Voron/Impl/AbstractPager.cs
	Raven.Voron/Voron/Impl/Backup/BackupMethods.cs
	Raven.Voron/Voron/Impl/Backup/FullBackup.cs
	Raven.Voron/Voron/Impl/Backup/IncrementalBackup.cs
	Raven.Voron/Voron/Impl/Backup/IncrementalBackupInfo.cs
	Raven.Voron/Voron/Impl/ConsecutiveSequences.cs
	Raven.Voron/Voron/Impl/Constants.cs
	Raven.Voron/Voron/Impl/FileHeaders/FileHeader.cs
	Raven.Voron/Voron/Impl/FileHeaders/HeaderAccessor.cs
	Raven.Voron/Voron/Impl/FlushMode.cs
	Raven.Voron/Voron/Impl/FreeSpace/FreeSpaceHandling.cs
	Raven.Voron/Voron/Impl/FreeSpace/IFreeSpaceHandling.cs
	Raven.Voron/Voron/Impl/FreeSpace/NoFreeSpaceHandling.cs
	Raven.Voron/Voron/Impl/FreeSpace/StreamBitArray.cs
	Raven.Voron/Voron/Impl/FreeSpaceRepository.cs
	Raven.Voron/Voron/Impl/IFreeSpaceRepository.cs
	Raven.Voron/Voron/Impl/IVirtualPager.cs
	Raven.Voron/Voron/Impl/Journal/IJournalWriter.cs
	Raven.Voron/Voron/Impl/Journal/JournalFile.cs
	Raven.Voron/Voron/Impl/Journal/JournalInfo.cs
	Raven.Voron/Voron/Impl/Journal/JournalReader.cs
	Raven.Voron/Voron/Impl/Journal/JournalSnapshot.cs
	Raven.Voron/Voron/Impl/Journal/PureMemoryJournalWriter.cs
	Raven.Voron/Voron/Impl/Journal/TransactionHeader.cs
	Raven.Voron/Voron/Impl/Journal/TransactionMarker.cs
	Raven.Voron/Voron/Impl/Journal/Win32JournalWriter.cs
	Raven.Voron/Voron/Impl/Journal/WriteAheadJournal.cs
	Raven.Voron/Voron/Impl/MemoryMapPager.cs
	Raven.Voron/Voron/Impl/NativeMethods.cs
	Raven.Voron/Voron/Impl/PagerState.cs
	Raven.Voron/Voron/Impl/Paging/AbstractPager.cs
	Raven.Voron/Voron/Impl/Paging/FilePager.cs
	Raven.Voron/Voron/Impl/Paging/FragmentedPureMemoryPager.cs
	Raven.Voron/Voron/Impl/Paging/IVirtualPager.cs
	Raven.Voron/Voron/Impl/Paging/MemoryMappedPager.cs
	Raven.Voron/Voron/Impl/Paging/TemporaryPage.cs
	Raven.Voron/Voron/Impl/Paging/Win32PureMemoryPager.cs
	Raven.Voron/Voron/Impl/ScratchBufferPool.cs
	Raven.Voron/Voron/Impl/SizeOf.cs
	Raven.Voron/Voron/Impl/SliceEqualityComparer.cs
	Raven.Voron/Voron/Impl/SnapshotReader.cs
	Raven.Voron/Voron/Impl/StorageEnvironmentState.cs
	Raven.Voron/Voron/Impl/Transaction.cs
	Raven.Voron/Voron/Impl/TransactionMergingWriter.cs
	Raven.Voron/Voron/Impl/TreeAndSliceComparer.cs
	Raven.Voron/Voron/Impl/WriteBatch.cs
	Raven.Voron/Voron/ReadResult.cs
	Raven.Voron/Voron/RecoveryErrorEventArgs.cs
	Raven.Voron/Voron/Slice.cs
	Raven.Voron/Voron/StorageEnvironment.cs
	Raven.Voron/Voron/StorageEnvironmentOptions.cs
	Raven.Voron/Voron/Trees/Cursor.cs
	Raven.Voron/Voron/Trees/EmptyIterator.cs
	Raven.Voron/Voron/Trees/IIterator.cs
	Raven.Voron/Voron/Trees/NodeHeader.cs
	Raven.Voron/Voron/Trees/Page.cs
	Raven.Voron/Voron/Trees/PageFlags.cs
	Raven.Voron/Voron/Trees/PageHeader.cs
	Raven.Voron/Voron/Trees/PageSplitter.cs
	Raven.Voron/Voron/Trees/RecentlyFoundPages.cs
	Raven.Voron/Voron/Trees/SingleEntryIterator.cs
	Raven.Voron/Voron/Trees/Tree.cs
	Raven.Voron/Voron/Trees/TreeDataInTransaction.cs
	Raven.Voron/Voron/Trees/TreeIterator.cs
	Raven.Voron/Voron/Trees/TreeMutableState.cs
	Raven.Voron/Voron/Trees/TreeRebalancer.cs
	Raven.Voron/Voron/Util/AsyncManualResetEvent.cs
	Raven.Voron/Voron/Util/Conversion/BigEndianBitConverter.cs
	Raven.Voron/Voron/Util/Conversion/DoubleConverter.cs
	Raven.Voron/Voron/Util/Conversion/EndianBitConverter.cs
	Raven.Voron/Voron/Util/Conversion/Endianness.cs
	Raven.Voron/Voron/Util/Conversion/LittleEndianBitConverter.cs
	Raven.Voron/Voron/Util/Conversion/readme.txt
	Raven.Voron/Voron/Util/Crc.cs
	Raven.Voron/Voron/Util/DataCopier.cs
	Raven.Voron/Voron/Util/DisposableAction.cs
	Raven.Voron/Voron/Util/EndOfDiskSpaceEvent.cs
	Raven.Voron/Voron/Util/ImmutableAppendOnlyList.cs
	Raven.Voron/Voron/Util/LZ4.cs
	Raven.Voron/Voron/Util/NativeFileMethods.cs
	Raven.Voron/Voron/Util/PageTable.cs
	Raven.Voron/Voron/Util/SkipList.cs
	Raven.Voron/Voron/Util/UnmanagedBits.cs
	Raven.Voron/Voron/Util/Utils.cs
	Raven.Voron/Voron/ValueReader.cs
	Raven.Voron/Voron/Voron.csproj
Fix references
Merge branch 'New3' of github.com:ayende/ravendb into New3

Conflicts:
	RavenFS.Tests/Properties/AssemblyInfo.cs