ravendb/ravendb — pull request #575 by nickchampion (2014-12-12 06:03:39+00:00)
Title: Only increment read stripe once when creating a session. Previously this...

... was being called twice per session creation which breaks the round robin reads from all servers

I noticed when read from all servers was enabled and I had just 2 servers in my cluster that no reads were going to the secondary, this was because the readStripingBase field of ReplicationInformerBase was being incremented twice each time a session was created.

So the change I have made only increments readStripingBase when instantiating the AsyncServerClient via the databaseCommandsGenerator and asyncDatabaseCommandsGenerator.

I left the AsyncServerClientBase (only used by AsyncFilesServerClient) incrementing the readStripingBase field whenever its instantiated, I am unsure whether you need to change the behaviour here or not.