I am hoping if you can help clarify the rollback on transactions, for scenario below. For example if we have the piece of code below
MyCustomObject__c customObj = new MyCustomObject__c ();
Savepoint sp = Database.setSavepoint();
try{
insert customObj;
}catch(Exception e){
Database.rollback(sp);
}
if we have another user using the same app, and is submitting a save on a new Opportunity object at the same time as the above rollback is happening, would the rollback affect the Opportunity object being saved at same time or is it just on the customObject? Thanks
try{...}
also need to rollback