diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-04-20 15:00:45 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-04-21 14:57:44 -0400 |
commit | 516600ebbd7831b5056a989cab5c59e919b42304 (patch) | |
tree | 8db51230b9979c755d5acee2c1afdbdedfec3810 /s/shard.h | |
parent | b291d96b0a536a5832bb89fb08d209128d5d5c97 (diff) | |
download | mongo-516600ebbd7831b5056a989cab5c59e919b42304.tar.gz |
ok() method on ScopedConnection to know if you actually have one or if done has been called
Diffstat (limited to 's/shard.h')
-rw-r--r-- | s/shard.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/s/shard.h b/s/shard.h index 836ffe7753d..baaf6781966 100644 --- a/s/shard.h +++ b/s/shard.h @@ -255,6 +255,8 @@ namespace mongo { _setVersion = false; _finishedInit = true; } + + bool ok() const { return _conn > 0; } /** this just passes through excpet it checks for stale configs |