[Groonga-commit] groonga/gcs [ember] Rollback the transaction instead of call deleteRecord(), when domain creation is failed

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Oct 4 18:04:17 JST 2012


YUKI Hiroshi	2012-10-04 18:04:17 +0900 (Thu, 04 Oct 2012)

  New Revision: aa91210be4f17d8a3de4e205cae2a35ac2133431
  https://github.com/groonga/gcs/commit/aa91210be4f17d8a3de4e205cae2a35ac2133431

  Log:
    Rollback the transaction instead of call deleteRecord(), when domain creation is failed

  Modified files:
    public/js/gcs/models.js

  Modified: public/js/gcs/models.js (+1 -1)
===================================================================
--- public/js/gcs/models.js    2012-10-04 17:50:22 +0900 (43ca2f8)
+++ public/js/gcs/models.js    2012-10-04 18:04:17 +0900 (600e1aa)
@@ -84,7 +84,7 @@ App.Adapter = DS.Adapter.extend({
         error: function(data) {
           // console.log(data);
           store.recordWasInvalid(model, {name: "invalid"});
-          store.deleteRecord(model);
+          model.get("transaction").rollback();
         }
       });
     } else {
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index