summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-02-28 02:00:12 -0500
committerEliot Horowitz <eliot@10gen.com>2011-02-28 02:00:12 -0500
commit77a039aec7109e6574954ae5fe353ec9db38800b (patch)
treedb234599097507e888fde6d9aa7eaf8b4886f5e9
parent0f533dd181c9807a47b1c6fe01206d7941c015f7 (diff)
downloadmongo-77a039aec7109e6574954ae5fe353ec9db38800b.tar.gz
accept only major version max for reads and writes 181?
-rw-r--r--s/d_state.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/s/d_state.cpp b/s/d_state.cpp
index 93594812cfc..962b933037d 100644
--- a/s/d_state.cpp
+++ b/s/d_state.cpp
@@ -635,10 +635,10 @@ namespace mongo {
return false;
}
- if ( isWriteOp && version.majorVersion() == clientVersion.majorVersion() ) {
+ if ( version.majorVersion() == clientVersion.majorVersion() ) {
// this means there was just a split
// since on a split w/o a migrate this server is ok
- // going to accept write
+ // going to accept
return true;
}