I have an oplock error that occurs from time saving to CloudKit. I can't seem to be able to find out why, but I suspect it happens when I manually edit CKRecords from the CloudKit dashboard and then fetch and modify that record from the app. Does anyone have an explanation to what oplock means and where I should start looking?
This is the error
Error Error saving record <CKRecordID: 0x79c42d60; 418deec9-ee5e-46b8-8877-606c14a5fe92:(_defaultZone:__defaultOwner__)> to server: client oplock error updating record
This is my code, note that the error appears even if I don't change the record
[self.publicDB saveRecord:self.currentUser completionHandler:^(CKRecord *record, NSError *error)
{
if(error)
{
NSLog(@"Error %@", error.localizedDescription);
}
else
{
NSLog(@"Saved access to Cloudkit");
}
}];