summaryrefslogtreecommitdiff
path: root/db/repl.h
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2008-08-19 14:39:44 -0400
committerDwight <dmerriman@gmail.com>2008-08-19 14:39:44 -0400
commit4e922d955bf8975059bf8fc39010027aa9f0882e (patch)
tree0b5ad5647eccc11108b4768f2684db27dc3685b5 /db/repl.h
parentc0867d2c3f9cc19f16ea859f254a955ca646aea8 (diff)
downloadmongo-4e922d955bf8975059bf8fc39010027aa9f0882e.tar.gz
reuse cursor from repl batch to batch
Diffstat (limited to 'db/repl.h')
-rw-r--r--db/repl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/repl.h b/db/repl.h
index f8aec8cc6ea..e73359fd52a 100644
--- a/db/repl.h
+++ b/db/repl.h
@@ -29,6 +29,7 @@
#pragma once
class DBClientConnection;
+class DBClientCursor;
extern bool slave;
extern bool master;
@@ -90,6 +91,7 @@ class Source {
void applyOperation(JSObj& op);
auto_ptr<DBClientConnection> conn;
+ auto_ptr<DBClientCursor> cursor;
public:
string hostName; // ip addr or hostname
string sourceName; // a logical source name.
@@ -111,7 +113,7 @@ public:
void resetConnection() { conn = auto_ptr<DBClientConnection>(0); }
// make a jsobj from our member fields of the form
- // { host: ..., source: ..., syncedTo: }
+ // { host: ..., source: ..., syncedTo: ... }
JSObj jsobj();
bool operator==(const Source&r) const {