]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
interval_set: fix union_of, intersection_of size accounting
authorSage Weil <sage@newdream.net>
Tue, 25 May 2010 21:44:05 +0000 (14:44 -0700)
committerSage Weil <sage@newdream.net>
Wed, 26 May 2010 18:01:00 +0000 (11:01 -0700)
src/include/interval_set.h

index 8fd7f65bc7dad8552967c9811e25100ca1c8d1dd..7e6d85a56ac56a2abe7dbe6f6798936ff52acf2c 100644 (file)
@@ -297,7 +297,7 @@ class interval_set {
   }
   void intersection_of(const interval_set& b) {
     interval_set a;
-    a.m.swap(m);
+    swap(a);
     intersection_of(a, b);
   }
 
@@ -322,7 +322,7 @@ class interval_set {
   }
   void union_of(const interval_set &b) {
     interval_set a;
-    a.m.swap(m);
+    swap(a);    
     union_of(a, b);
   }