From f5638a2a68d9ce3fa527ec61ee8453e6dd850930 Mon Sep 17 00:00:00 2001 From: pines Date: Tue, 5 Sep 2006 01:52:15 +0000 Subject: [PATCH] mitigate race condition on distributed db git-svn-id: svn://svn.open-ils.org/ILS/trunk@5936 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/info_group.xul | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/info_group.xul b/Open-ILS/xul/staff_client/server/patron/info_group.xul index a54a45aa99..edb65620f1 100644 --- a/Open-ILS/xul/staff_client/server/patron/info_group.xul +++ b/Open-ILS/xul/staff_client/server/patron/info_group.xul @@ -279,7 +279,9 @@ g.error.standard_unexpected_error_alert('error removing patron (id=' + g.sel_list[i] + ') from usergroup',robj); } } - alert('Patrons removed from group.'); /* FIXME - xulrunner bug if this alert comes after refresh? */ + alert('Patrons removed from group.'); + /* FIXME - xulrunner bug if this alert comes after refresh? */ + /* that's okay, because now that we're on a distributed database, we want human delay to mitigate race conditions */ refresh(); } else { alert('Patron not removed from group.'); @@ -375,8 +377,8 @@ if (typeof robj.ilsevent != 'undefined') g.error.standard_unexpected_error_alert('error linking patron (id=' + g.sel_list[i] + ')', robj); } } - refresh(); alert('User groups updated.'); + refresh(); } catch(E) { g.error.standard_unexpected_error_alert('error linking patrons',E); refresh(); -- 2.43.2