larvitdbmigration
Advanced tools
Comparing version 1.3.0 to 1.3.1
16
index.js
@@ -64,6 +64,14 @@ 'use strict'; | ||
} else { | ||
log.info('larvitdbmigration: getLock() - Another process is running the migrations for table ' + options.tableName + ', wait and try again soon.'); | ||
setTimeout(function() { | ||
getLock(cb); | ||
}, 500); | ||
dbCon.query('UNLOCK TABLES;', function(err) { | ||
if (err) { | ||
log.error('larvitdbmigration: getLock() - SQL err: ' + err.message); | ||
cb(err); | ||
return; | ||
} | ||
log.info('larvitdbmigration: getLock() - Another process is running the migrations for table ' + options.tableName + ', wait and try again soon.'); | ||
setTimeout(function() { | ||
getLock(cb); | ||
}, 500); | ||
}); | ||
} | ||
@@ -70,0 +78,0 @@ }); |
@@ -38,3 +38,3 @@ { | ||
}, | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"readmeFilename": "README.md", | ||
@@ -41,0 +41,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16248
319