summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-02-10 11:47:13 -0500
committerEliot Horowitz <eliot@10gen.com>2011-02-10 11:47:13 -0500
commit6fccb3bca4619f23002ad6ab3a382fdc992a01f1 (patch)
tree652562e37a15f5c8de32e9b06008497bd4544ecc /util
parent621b4f0338164a33fe5a3452ffd4060a3a5ebd9b (diff)
downloadmongo-6fccb3bca4619f23002ad6ab3a382fdc992a01f1.tar.gz
cleaner pointer handling in SlaveTracking
Diffstat (limited to 'util')
-rw-r--r--util/optime.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/optime.h b/util/optime.h
index 6eb55abb86c..7e6be4d57de 100644
--- a/util/optime.h
+++ b/util/optime.h
@@ -56,6 +56,10 @@ namespace mongo {
secs = a;
i = b;
}
+ OpTime( const OpTime& other ) {
+ secs = other.secs;
+ i = other.i;
+ }
OpTime() {
secs = 0;
i = 0;