diff options
author | Randolph Tan <randolph@10gen.com> | 2015-03-31 18:19:56 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2015-04-01 13:27:10 -0400 |
commit | fe8a41689e861f6fd1b599cbd63e651b9077edaf (patch) | |
tree | 28776f1659a3741dd559b8e57c113cc11b4ede78 /src/mongo/s/d_state.cpp | |
parent | 827d70905cea7af29981a6a2a39dd1f3eb88b926 (diff) | |
download | mongo-fe8a41689e861f6fd1b599cbd63e651b9077edaf.tar.gz |
SERVER-17805 logOp / OperationObserver should always check shardversion
Diffstat (limited to 'src/mongo/s/d_state.cpp')
-rw-r--r-- | src/mongo/s/d_state.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/s/d_state.cpp b/src/mongo/s/d_state.cpp index 07215afabf9..b60cf1b178b 100644 --- a/src/mongo/s/d_state.cpp +++ b/src/mongo/s/d_state.cpp @@ -1338,6 +1338,11 @@ namespace mongo { // TODO : all collections at some point, be sharded or not, will have a version // (and a CollectionMetadata) received = info->getVersion( ns ); + + if (ChunkVersion::isIgnoredVersion(received)) { + return true; + } + wanted = shardingState.getVersion( ns ); if( received.isWriteCompatibleWith( wanted ) ) return true; |