diff options
author | Andy Schwerin <schwerin@10gen.com> | 2012-04-17 18:03:09 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2012-04-17 18:03:09 -0400 |
commit | 8448f0aba635205bce0b3846af2027f7f0245904 (patch) | |
tree | fc8add3b71213bcb0417a3c8d2d720f6bdcd91bf /src/mongo/bson/util | |
parent | d21c5973fb87360c62a00a31b4fe42fa6eabc8a2 (diff) | |
download | mongo-8448f0aba635205bce0b3846af2027f7f0245904.tar.gz |
Fix implementation of AtomicUint::set on systems with older versions of GCC.
Diffstat (limited to 'src/mongo/bson/util')
-rw-r--r-- | src/mongo/bson/util/atomic_int.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/util/atomic_int.h b/src/mongo/bson/util/atomic_int.h index 14af368ac58..d8becb890a7 100644 --- a/src/mongo/bson/util/atomic_int.h +++ b/src/mongo/bson/util/atomic_int.h @@ -93,7 +93,7 @@ namespace mongo { #elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) inline void AtomicUInt::set(unsigned newX) { asm volatile("mfence" ::: "memory"); - x = 0; + x = newX; } // from boost 1.39 interprocess/detail/atomic.hpp |