You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by mm...@apache.org on 2020/08/24 14:08:08 UTC
[geode-native] branch develop updated: GEODE-8441: AppDomainContext
was initialized too late (#639)
This is an automated email from the ASF dual-hosted git repository.
mmartell pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git
The following commit(s) were added to refs/heads/develop by this push:
new f368514 GEODE-8441: AppDomainContext was initialized too late (#639)
f368514 is described below
commit f3685141d430c71897eea47eff3809b6067bd137
Author: Michael Martell <mm...@pivotal.io>
AuthorDate: Mon Aug 24 07:08:00 2020 -0700
GEODE-8441: AppDomainContext was initialized too late (#639)
* GEODE-8441: AppDomainContext was initialized too late
* Update CacheFactory.cpp
---
clicache/src/CacheFactory.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/clicache/src/CacheFactory.cpp b/clicache/src/CacheFactory.cpp
index 5e718e9..5e720e0 100644
--- a/clicache/src/CacheFactory.cpp
+++ b/clicache/src/CacheFactory.cpp
@@ -55,6 +55,7 @@ namespace Apache
Cache^ CacheFactory::Create()
{
+ native::createAppDomainContext = &Apache::Geode::Client::createAppDomainContext;
bool pdxIgnoreUnreadFields = false;
bool pdxReadSerialized = false;
_GF_MG_EXCEPTION_TRY2
@@ -70,14 +71,12 @@ namespace Apache
pdxReadSerialized = nativeCache->getPdxReadSerialized();
Log::SetLogLevel(static_cast<LogLevel>(native::Log::logLevel( )));
- native::createAppDomainContext = &Apache::Geode::Client::createAppDomainContext;
-
DistributedSystem::ManagedPostConnect(cache);
DistributedSystem::registerCliCallback();
auto&& cacheImpl = CacheRegionHelper::getCacheImpl(nativeCache.get());
cacheImpl->getSerializationRegistry()->setPdxTypeHandler(new ManagedPdxTypeHandler());
- cacheImpl->getSerializationRegistry()->setDataSerializableHandler(new ManagedDataSerializableHandler());
+ cacheImpl->getSerializationRegistry()->setDataSerializableHandler(new ManagedDataSerializableHandler());
return cache;
_GF_MG_EXCEPTION_CATCH_ALL2