From: Sunghyun Kwon Date: Wed, 17 Apr 2013 05:15:13 +0000 (+0900) Subject: Fixed the build error X-Git-Tag: submit/submit/20141001.115906~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd3f8f6706649e6899d5b140bdbe92cc1c53216c;p=platform%2Fframework%2Fnative%2Fmessaging.git Fixed the build error --- diff --git a/email-core/email-storage/email-storage.c b/email-core/email-storage/email-storage.c index 8f95c2e..e2e6b29 100755 --- a/email-core/email-storage/email-storage.c +++ b/email-core/email-storage/email-storage.c @@ -1418,7 +1418,6 @@ static void *_emstorage_open_once(int *err_code) _delete_temp_file(MAILTEMP); - ENTER_CRITICAL_SECTION(_transactionBeginLock); g_transaction = false; if (!emstorage_create_table(EMAIL_CREATE_DB_NORMAL, &error)) { @@ -10327,9 +10326,7 @@ INTERNAL_FUNC int emstorage_begin_transaction(void *d1, void *d2, int *err_code) if (ret == false) { if (err_code != NULL) *err_code = EMAIL_ERROR_DB_FAILURE; - ENTER_CRITICAL_SECTION(_transactionEndLock); g_transaction = false; - LEAVE_CRITICAL_SECTION(_transactionEndLock); } EM_PROFILE_END(emStorageBeginTransaction); @@ -10368,8 +10365,6 @@ INTERNAL_FUNC int emstorage_rollback_transaction(void *d1, void *d2, int *err_co EM_DEBUG_DB_EXEC(SQLITE_OK != rc, {ret = false; }, ("SQL(ROLLBACK) exec error:%d -%s", rc, sqlite3_errmsg(local_db_handle))); - ENTER_CRITICAL_SECTION(_transactionEndLock); - /* release the transaction authority. */ g_transaction = false;