projects
/
libcds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7561e4d
)
Fixed a bug in update() function
author
khizmax
<libcds.dev@gmail.com>
Tue, 15 Sep 2015 21:09:38 +0000
(
00:09
+0300)
committer
khizmax
<libcds.dev@gmail.com>
Tue, 15 Sep 2015 21:09:38 +0000
(
00:09
+0300)
cds/container/lazy_kvlist_nogc.h
patch
|
blob
|
history
diff --git
a/cds/container/lazy_kvlist_nogc.h
b/cds/container/lazy_kvlist_nogc.h
index 4399ee5f314867e19d7873a7139d40c93584f514..1cf0729af27543fc03b66f91bff8f080108aad62 100644
(file)
--- a/
cds/container/lazy_kvlist_nogc.h
+++ b/
cds/container/lazy_kvlist_nogc.h
@@
-546,10
+546,10
@@
namespace cds { namespace container {
std::pair<bool, bool> ret = base_class::update_at( &refHead, *pNode,
[&pItemFound](bool, node_type& item, node_type&){ pItemFound = &item; },
bAllowInsert );
- if ( ret.first && ret.second )
+
+ if ( ret.second )
pNode.release();
- assert( pItemFound != nullptr );
return std::make_pair( pItemFound, ret.second );
}