]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
- Fix atomic set.
authorStanislav Sedov <stas@FreeBSD.org>
Tue, 20 Sep 2011 05:16:48 +0000 (22:16 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Sat, 24 Sep 2011 20:49:40 +0000 (13:49 -0700)
src/include/atomic.h

index f2e56f9134bb43f4be47be6741a0f7345056bffb..0c22b269c7c198f2e521a1410bdcf5effdfb5bbf 100644 (file)
@@ -82,7 +82,7 @@ namespace ceph {
     }
     void set(size_t v) {
       pthread_spin_lock(&lock);
-      int r = v;
+      val = v;
       pthread_spin_unlock(&lock);
     }
     int inc() {