summaryrefslogtreecommitdiff
path: root/db/repl.h
diff options
context:
space:
mode:
Diffstat (limited to 'db/repl.h')
-rw-r--r--db/repl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/db/repl.h b/db/repl.h
index c5e0f63..a42fa8e 100644
--- a/db/repl.h
+++ b/db/repl.h
@@ -205,7 +205,10 @@ namespace mongo {
public:
MemIds() : size_() {}
friend class IdTracker;
- void reset() { imp_.clear(); }
+ void reset() {
+ imp_.clear();
+ size_ = 0;
+ }
bool get( const char *ns, const BSONObj &id ) { return imp_[ ns ].count( id ); }
void set( const char *ns, const BSONObj &id, bool val ) {
if ( val ) {