Commit f6b9189a authored by Tristan Cavelier's avatar Tristan Cavelier

Fix bug : loading metadata with conflict manager storage

parent 527e4fe2
/*! JIO Storage - v0.1.0 - 2012-06-28 /*! JIO Storage - v0.1.0 - 2012-07-24
* Copyright (c) 2012 Nexedi; Licensed */ * Copyright (c) 2012 Nexedi; Licensed */
(function(LocalOrCookieStorage, $, Base64, sjcl, hex_sha256, Jio) { (function(LocalOrCookieStorage, $, Base64, sjcl, hex_sha256, Jio) {
...@@ -1199,6 +1199,7 @@ var newConflictManagerStorage = function ( spec, my ) { ...@@ -1199,6 +1199,7 @@ var newConflictManagerStorage = function ( spec, my ) {
priv.loadMetadataFromDistant = function (command,path,onDone,onFail) { priv.loadMetadataFromDistant = function (command,path,onDone,onFail) {
var cloned_option = command.cloneOption (); var cloned_option = command.cloneOption ();
cloned_option.metadata_only = false; cloned_option.metadata_only = false;
cloned_option.max_retry = 1; // FIXME : wrong ! (redesign jio & storage)
cloned_option.onResponse = function () {}; cloned_option.onResponse = function () {};
cloned_option.onFail = onFail; cloned_option.onFail = onFail;
cloned_option.onDone = onDone; cloned_option.onDone = onDone;
......
This diff is collapsed.
...@@ -57,6 +57,7 @@ var newConflictManagerStorage = function ( spec, my ) { ...@@ -57,6 +57,7 @@ var newConflictManagerStorage = function ( spec, my ) {
priv.loadMetadataFromDistant = function (command,path,onDone,onFail) { priv.loadMetadataFromDistant = function (command,path,onDone,onFail) {
var cloned_option = command.cloneOption (); var cloned_option = command.cloneOption ();
cloned_option.metadata_only = false; cloned_option.metadata_only = false;
cloned_option.max_retry = 1; // FIXME : wrong ! (redesign jio & storage)
cloned_option.onResponse = function () {}; cloned_option.onResponse = function () {};
cloned_option.onFail = onFail; cloned_option.onFail = onFail;
cloned_option.onDone = onDone; cloned_option.onDone = onDone;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment