You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by jb...@apache.org on 2017/03/07 01:36:49 UTC
[09/21] geode-native git commit: GEODE-2494: Remove dead code.
GEODE-2494: Remove dead code.
Project: http://git-wip-us.apache.org/repos/asf/geode-native/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode-native/commit/a3d90c10
Tree: http://git-wip-us.apache.org/repos/asf/geode-native/tree/a3d90c10
Diff: http://git-wip-us.apache.org/repos/asf/geode-native/diff/a3d90c10
Branch: refs/heads/feature/GEODE-2602
Commit: a3d90c10acf026044fde86ff31007c92b3d3773e
Parents: 2822ed2
Author: Jacob Barrett <jb...@pivotal.io>
Authored: Tue Feb 28 08:41:34 2017 -0800
Committer: Jacob Barrett <jb...@pivotal.io>
Committed: Mon Mar 6 17:32:11 2017 -0800
----------------------------------------------------------------------
src/cppcache/src/LRUList.cpp | 3 ---
src/cppcache/src/MapSegment.cpp | 5 -----
2 files changed, 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/geode-native/blob/a3d90c10/src/cppcache/src/LRUList.cpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/LRUList.cpp b/src/cppcache/src/LRUList.cpp
index 92b32f9..52cf22f 100644
--- a/src/cppcache/src/LRUList.cpp
+++ b/src/cppcache/src/LRUList.cpp
@@ -25,9 +25,6 @@ namespace client {
using util::concurrent::spinlock_mutex;
-//#define LOCK_HEAD SpinLockGuard headLockGuard(m_headLock)
-//#define LOCK_TAIL SpinLockGuard tailLockGuard(m_tailLock)
-
template <typename TEntry, typename TCreateEntry>
LRUList<TEntry, TCreateEntry>::LRUList() : m_headLock(), m_tailLock() {
LRUListEntryPtr headEntry(TCreateEntry::create(NULLPTR));
http://git-wip-us.apache.org/repos/asf/geode-native/blob/a3d90c10/src/cppcache/src/MapSegment.cpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/MapSegment.cpp b/src/cppcache/src/MapSegment.cpp
index 6396062..28a6890 100644
--- a/src/cppcache/src/MapSegment.cpp
+++ b/src/cppcache/src/MapSegment.cpp
@@ -320,7 +320,6 @@ GfErrType MapSegment::remove(const CacheableKeyPtr& key, CacheablePtr& oldValue,
MapEntryImplPtr& me, int updateCount,
VersionTagPtr versionTag, bool afterRemote,
bool& isEntryFound) {
- // std::lock_guard<spinlock_mutex> lk(m_spinlock);
int status;
MapEntryPtr entry;
if (m_concurrencyChecksEnabled) {
@@ -330,13 +329,11 @@ GfErrType MapSegment::remove(const CacheableKeyPtr& key, CacheablePtr& oldValue,
GfErrType err;
{
std::lock_guard<spinlock_mutex> lk(m_spinlock);
- // if (m_concurrencyChecksEnabled)
err = removeWhenConcurrencyEnabled(key, oldValue, me, updateCount,
versionTag, afterRemote, isEntryFound,
id, handler, expTaskSet);
}
- // if (m_concurrencyChecksEnabled){
if (!expTaskSet) {
CacheImpl::expiryTaskManager->cancelTask(id);
delete handler;
@@ -461,8 +458,6 @@ void MapSegment::keys(VectorOfCacheableKey& result) {
*/
void MapSegment::entries(VectorOfRegionEntry& result) {
std::lock_guard<spinlock_mutex> lk(m_spinlock);
- // printf("total_size)=%u, current_size=%u\n",
- // m_map->total_size(), m_map->current_size());
for (CacheableKeyHashMap::iterator iter = m_map->begin();
iter != m_map->end(); iter++) {
CacheableKeyPtr keyPtr;