summaryrefslogtreecommitdiff
path: root/src/mongo/db/client.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-06-26 08:34:39 -0400
committerEliot Horowitz <eliot@10gen.com>2012-06-26 08:34:39 -0400
commit0d1fd31650d38a64969879bd3875e38946119297 (patch)
tree92af6184b97338479562e46c6e58203873b418fb /src/mongo/db/client.h
parent63a957eca0eae9fc3e68bf3305bea7cf65b16985 (diff)
downloadmongo-0d1fd31650d38a64969879bd3875e38946119297.tar.gz
remove broken implementation of killing ops if socket is gone
Diffstat (limited to 'src/mongo/db/client.h')
-rw-r--r--src/mongo/db/client.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/client.h b/src/mongo/db/client.h
index adbbced026e..8b63ca48cf2 100644
--- a/src/mongo/db/client.h
+++ b/src/mongo/db/client.h
@@ -143,7 +143,6 @@ namespace mongo {
BSONObj _handshake;
BSONObj _remoteId;
AbstractMessagingPort * const _mp;
- unsigned _sometimes;
bool _hasWrittenThisPass;
PageFaultRetryableSection *_pageFaultRetryableSection;
@@ -154,13 +153,6 @@ namespace mongo {
friend class NoPageFaultsAllowed; // TEMP
public:
- /** the concept here is the same as MONGO_SOMETIMES. however that
- macro uses a static that will be shared by all threads, and each
- time incremented it might eject that line from the other cpu caches (?),
- so idea is that this is better.
- */
- bool sometimes(unsigned howOften) { return ++_sometimes % howOften == 0; }
-
/* set _god=true temporarily, safely */
class GodScope {
bool _prev;