RepositoryEngine::RepositoryEngine(void) {
- if (pthread_mutex_init(&__capabilityInfoMutex, NULL) != 0) {
+ if (pthread_mutex_init(&__capabilityInfoMutex, NULL) != 0)
LOG_LOGD("__capabilityInfoMutex init failed"); /* LCOV_EXCL_LINE */
- return;
- }
- if (pthread_mutex_init(&__syncDBReadWriteMutex, NULL) != 0) {
+ if (pthread_mutex_init(&__syncDBReadWriteMutex, NULL) != 0)
LOG_LOGD("__syncDBReadWriteMutex init failed"); /* LCOV_EXCL_LINE */
- return;
- }
}
/* process for removing previous data */
xmlNodePtr rootNode;
- stringstream ss;
doc = xmlNewDoc(_VERSION);
/* process for removing previous data */
xmlNodePtr rootNode;
- stringstream ss;
doc = xmlNewDoc(_VERSION);
UserValue = const_cast<char *>(value);
}
-
+/*
static std::string setEmpty(void) {
return "";
-}
+}*/
int
char noRetry[2] = { 0, };
snprintf(noRetry, sizeof(noRetry) - 1, "%d", Option & SYNC_OPTION_NO_RETRY);
- UserKey = const_cast<char *>(setEmpty().c_str());
- UserValue = const_cast<char *>(setEmpty().c_str());
+ UserKey = const_cast<char *>(std::string().c_str());
+ UserValue = const_cast<char *>(std::string().c_str());
if (UserData)
bundle_iterate(UserData, bundIterCb, NULL);
char noRetry[2] = { 0, };
snprintf(noRetry, sizeof(noRetry) - 1, "%d", Option & SYNC_OPTION_NO_RETRY);
- UserKey = const_cast<char *>(setEmpty().c_str());
- UserValue = const_cast<char *>(setEmpty().c_str());
+ UserKey = const_cast<char *>(std::string().c_str());
+ UserValue = const_cast<char *>(std::string().c_str());
if (UserData)
bundle_iterate(UserData, bundIterCb, NULL);
#include "sync-log.h"
#include "sync-error.h"
#include "SyncManager_SyncWorker.h"
-
+#include "SyncManager_SyncJob.h"
/*namespace _SyncManager
{*/
for (std::list<RequestData*>::iterator it = __pendingRequests.begin(); it != __pendingRequests.end();) {
RequestData* pRequestData = *it;
+ if ((pRequestData->message).pSyncJob != NULL) {
+ delete (pRequestData->message).pSyncJob;
+ (pRequestData->message).pSyncJob = NULL;
+ }
delete pRequestData;
pRequestData = NULL;
it = __pendingRequests.erase(it);