diff options
author | Ickhee Woo <ickhee.woo@samsung.com> | 2016-12-27 13:26:46 +0900 |
---|---|---|
committer | Ickhee Woo <ickhee.woo@samsung.com> | 2016-12-27 13:26:46 +0900 |
commit | 6437d0dd19383ab02389ea4dee7ab3ceed2afcec (patch) | |
tree | 87c674e28482d13a6607aaec77e0275d81bb5cef | |
parent | 3cef728e854f4b8c6631d7a05954b8affea81853 (diff) | |
download | sync-manager-tizen_3.0.m2.tar.gz sync-manager-tizen_3.0.m2.tar.bz2 sync-manager-tizen_3.0.m2.zip |
move location of function call for writing Sync Adapterssubmit/tizen_3.0/20161227.043407submit/tizen_3.0.m2/20170104.093748accepted/tizen/3.0/wearable/20161227.141835accepted/tizen/3.0/mobile/20161227.141706accepted/tizen/3.0/common/20161227.181414accepted/tizen/3.0.m2/wearable/20170104.101107accepted/tizen/3.0.m2/mobile/20170104.100317tizen_3.0.m2accepted/tizen_3.0.m2_wearableaccepted/tizen_3.0.m2_mobile
Change-Id: I4387a386fad7dad0106ebd25dfd7b9b8707a547d
Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
-rw-r--r-- | src/sync-service/SyncManager_RepositoryEngine.cpp | 6 | ||||
-rw-r--r-- | src/sync-service/SyncManager_SyncAdapterAggregator.cpp | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/sync-service/SyncManager_RepositoryEngine.cpp b/src/sync-service/SyncManager_RepositoryEngine.cpp index 42cc282..fe063f4 100644 --- a/src/sync-service/SyncManager_RepositoryEngine.cpp +++ b/src/sync-service/SyncManager_RepositoryEngine.cpp @@ -508,10 +508,10 @@ RepositoryEngine::ReadSyncAdapters(void) { } else { pAggregator->HandlePackageUninstalled((char*)pPackageId); } - WriteSyncAdapters(); } cur = cur->next; } + WriteSyncAdapters(); pAggregator->dumpSyncAdapters(); } @@ -670,10 +670,8 @@ RepositoryEngine::WriteSyncAdapters(void) { for (map<string, string>::iterator iter = pAggregator->__syncAppStatus.begin(); iter != pAggregator->__syncAppStatus.end(); ++iter) { string appID = iter->first; string appStatus = iter->second; - if (!strcmp(syncAdapter.c_str(), appID.c_str())) { - LOG_LOGD("Set AppStatus : [%s]", appStatus.c_str()); + if (!strcmp(syncAdapter.c_str(), appID.c_str())) xmlNewProp(saNode, XML_ATTR_APP_STATUS, (const xmlChar*)(appStatus.c_str())); - } } } } diff --git a/src/sync-service/SyncManager_SyncAdapterAggregator.cpp b/src/sync-service/SyncManager_SyncAdapterAggregator.cpp index 323ee77..d426945 100644 --- a/src/sync-service/SyncManager_SyncAdapterAggregator.cpp +++ b/src/sync-service/SyncManager_SyncAdapterAggregator.cpp @@ -56,12 +56,12 @@ SyncAdapterAggregator::SetAppStatus(const char* pServiceAppId, const char* pAppS for (map<string, string>::iterator iter = __syncAppStatus.begin(); iter != __syncAppStatus.end(); ++iter) { string appID = iter->first; if (!strcmp(pServiceAppId, appID.c_str())) { - LOG_LOGD("Sync status already exist and it will be set as [%s]", pAppStatus); + LOG_LOGD("Sync status already exist and it is set as [%s]", pAppStatus); iter->second = pAppStatus; return; } } - LOG_LOGD("Sync status will be set as [%s]", pAppStatus); + LOG_LOGD("Sync status is set as [%s]", pAppStatus); __syncAppStatus.insert(pair<string, string> (pServiceAppId, pAppStatus)); } /* LCOV_EXCL_STOP */ |