(231401) master to test #1466

Merged
alexm merged 29 commits from 231401_master_to_test into test 2023-04-21 10:38:37 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit dc853213b8 - Show all commits

View File

@ -52,7 +52,7 @@ module.exports = Self => {
const container = await $.ImageContainer.container(collection);
const rootPath = container.client.root;
const tx = await Self.beginTransaction({});
const tx = await Self.beginTransaction({timeout: null});
const opts = {transaction: tx};
const lockName = 'salix.Image.scrub';

View File

@ -21,8 +21,8 @@ module.exports = function(Self) {
let orgBeginTransaction = this.beginTransaction;
this.beginTransaction = function(options, cb) {
options = options || {};
if (!options.timeout)
options.timeout = 120000;
if (options.timeout === undefined)
options.timeout = 120 * 1000;
return orgBeginTransaction.call(this, options, cb);
};
});