Fixed an error in Map_InsDel_func test for FeldmanHahMap
[libcds.git] / tests / unit / map2 / map_insdel_func.h
index d6dd3d5f17589a593c8b94e89169bf86a69432e8..fcc85430ec6fd458782f024e491c2b936b928509 100644 (file)
@@ -39,7 +39,7 @@ namespace map2 {
             size_t      nData;
             atomics::atomic<size_t> nUpdateCall;
             atomics::atomic<bool>   bInitialized;
-            cds::OS::ThreadId          threadId     ;   // insert thread id
+            cds::OS::ThreadId       threadId;   // inserter thread id
 
             typedef cds::sync::spin_lock< cds::backoff::pause > lock_type;
             mutable lock_type   m_access;
@@ -218,7 +218,7 @@ namespace map2 {
                 template <typename Val>
                 void operator()( Val& cur, Val * old )
                 {
-                    operator()( old != nullptr, cur.first, cur.second );
+                    operator()( old == nullptr, cur.first, cur.second );
                 }
 
             private: