318319320321322323324325326327328
} } finally { if (cursor != null) cursor.abort(); } return count; } /**
504505506507508509510511512513514
cursor.close(); done = true; } catch (LockConflictException e) { cursor.abort(); if (tries == DEADLOCK_RETRIES) { // could not handle the Deadlock after DEADLOCK_RETRIES tries. // shutdown the ReplicationServer. shutdown = true;
518519520521522523524525526527528
catch (DatabaseException e) { // mark shutdown for this db so that we don't try again to // stop it from cursor.close() or methods called by cursor.close() shutdown = true; cursor.abort(); throw (e); } } } }