From 15581be8a3a107eb3e66bf061ff179fd483adfa1 Mon Sep 17 00:00:00 2001 From: Shrirang Shirodkar Date: Wed, 20 May 2015 09:32:39 -0700 Subject: [PATCH] Fix potential race conditions while adding items to sync table - The write operation dispatch queue is defined as concurrent, however, the tasks that run in it are not thread safe. - Changing dispatch queue type from concurrent to serial will take care of it - In the future, if needed, we can change it back to concurrent and make the tasks that run in it thread safe. --- sdk/iOS/src/MSSyncContext.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/iOS/src/MSSyncContext.m b/sdk/iOS/src/MSSyncContext.m index f5ce73b5c..fdc0e8d71 100644 --- a/sdk/iOS/src/MSSyncContext.m +++ b/sdk/iOS/src/MSSyncContext.m @@ -53,7 +53,7 @@ -(id) initWithDelegate:(id) delegate dataSource:(id