Permalink
Browse files

notify when shard version getting reset

  • Loading branch information...
gregs
gregs committed Sep 15, 2011
1 parent 09afe30 commit 618a111c9001b83722d4505319d3bf7fb3f1ad17
Showing with 8 additions and 0 deletions.
  1. +8 −0 s/shard_version.cpp
View
@@ -140,6 +140,14 @@ namespace mongo {
version = manager->getVersion( Shard::make( conn->getServerAddress() ) );
}
+ if( version == 0 ){
+ LOG(0) << "resetting shard version of " << ns << " on " << conn->getServerAddress() << ", " <<
+ ( ! isSharded ? "no longer sharded" :
+ ( ! manager ? "no chunk manager found" :
+ "version is zero" ) ) << endl;
+ }
+
+
LOG(2) << " have to set shard version for conn: " << conn << " ns:" << ns
<< " my last seq: " << sequenceNumber << " current: " << officialSequenceNumber
<< " version: " << version << " manager: " << manager.get()

0 comments on commit 618a111

Please sign in to comment.