mirror of
https://github.com/ceph/ceph
synced 2024-12-28 06:23:08 +00:00
b595568218
The issue has been fixed upstream under lockfree commit 7e23dac52d08ed1a099de9a6fb8bcdefbb06d2da but is not yet available in a boost release. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
12 lines
495 B
Diff
12 lines
495 B
Diff
--- a/boost/lockfree/queue.hpp
|
|
+++ b/boost/lockfree/queue.hpp
|
|
@@ -108,7 +108,7 @@
|
|
typedef typename detail::select_tagged_handle<node, node_based>::handle_type handle_type;
|
|
|
|
node(T const & v, handle_type null_handle):
|
|
- data(v)//, next(tagged_node_handle(0, 0))
|
|
+ next(tagged_node_handle(null_handle, 0)), data(v)
|
|
{
|
|
/* increment tag to avoid ABA problem */
|
|
tagged_node_handle old_next = next.load(memory_order_relaxed);
|