diff options
author | Dwight <dmerriman@gmail.com> | 2008-08-19 14:39:44 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2008-08-19 14:39:44 -0400 |
commit | 4e922d955bf8975059bf8fc39010027aa9f0882e (patch) | |
tree | 0b5ad5647eccc11108b4768f2684db27dc3685b5 /db/repl.h | |
parent | c0867d2c3f9cc19f16ea859f254a955ca646aea8 (diff) | |
download | mongo-4e922d955bf8975059bf8fc39010027aa9f0882e.tar.gz |
reuse cursor from repl batch to batch
Diffstat (limited to 'db/repl.h')
-rw-r--r-- | db/repl.h | 4 |
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 { |