(231401) master to test #1466
|
@ -52,7 +52,7 @@ module.exports = Self => {
|
||||||
const container = await $.ImageContainer.container(collection);
|
const container = await $.ImageContainer.container(collection);
|
||||||
const rootPath = container.client.root;
|
const rootPath = container.client.root;
|
||||||
|
|
||||||
const tx = await Self.beginTransaction({});
|
const tx = await Self.beginTransaction({timeout: null});
|
||||||
const opts = {transaction: tx};
|
const opts = {transaction: tx};
|
||||||
|
|
||||||
const lockName = 'salix.Image.scrub';
|
const lockName = 'salix.Image.scrub';
|
||||||
|
|
|
@ -21,8 +21,8 @@ module.exports = function(Self) {
|
||||||
let orgBeginTransaction = this.beginTransaction;
|
let orgBeginTransaction = this.beginTransaction;
|
||||||
this.beginTransaction = function(options, cb) {
|
this.beginTransaction = function(options, cb) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
if (!options.timeout)
|
if (options.timeout === undefined)
|
||||||
options.timeout = 120000;
|
options.timeout = 120 * 1000;
|
||||||
return orgBeginTransaction.call(this, options, cb);
|
return orgBeginTransaction.call(this, options, cb);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue