Permalink
Browse files

Making sure that replication requests don't throw SeeOther exceptions

  • Loading branch information...
1 parent 0084675 commit d10c47ebdd8ec0e932bfd30df7870afa95e1cdc4 ayenderahien committed Jun 6, 2009
Showing with 6 additions and 3 deletions.
  1. +6 −3 Rhino.DistributedHashTable/Internal/DistributedHashTableStorage.cs
@@ -80,7 +80,8 @@ public PutResult[] Put(Guid topologyVersion, params ExtendedPutRequest[] valuesT
{
foreach (var request in valuesToAdd)
{
- AssertSegmentNotMoved(actions, request.Segment);
+ if (request.IsReplicationRequest == false)
+ AssertSegmentNotMoved(actions, request.Segment);
request.Tag = request.Segment;
@@ -145,7 +146,8 @@ public bool[] Remove(Guid topologyVersion, params ExtendedRemoveRequest[] values
{
foreach (var request in valuesToRemove)
{
- AssertSegmentNotMoved(actions, request.Segment);
+ if (request.IsReplicationRequest == false)
+ AssertSegmentNotMoved(actions, request.Segment);
if (request.SpecificVersion == null)
throw new ArgumentException("Could not accept request with no SpecificVersion");
@@ -203,7 +205,8 @@ public Value[][] Get(Guid topologyVersion,params ExtendedGetRequest[] valuesToGe
{
foreach (var request in valuesToGet)
{
- AssertSegmentNotMoved(actions, request.Segment);
+ if (request.IsReplicationRequest == false)
+ AssertSegmentNotMoved(actions, request.Segment);
var values = actions.Get(request);
results.Add(values);
}

0 comments on commit d10c47e

Please sign in to comment.