mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 00:13:12 +09:00
Increased slave database limits due to demands from researchSync
This commit is contained in:
1 parent
b7b0dd9d85
commit
5076b4e8e1
1 file changed
+1
-1
@@ -191,7 +191,7 @@ db.items.removeItem = function(object) {
|
|||||||
process.on('SIGINT', function () {
|
process.on('SIGINT', function () {
|
||||||
console.log('Ctrl-C...');
|
console.log('Ctrl-C...');
|
||||||
// set insane limit to slave length, if its longer than this we are probably being ddosed or something
|
// set insane limit to slave length, if its longer than this we are probably being ddosed or something
|
||||||
if(slaves && Object.keys(slaves).length < 50000){
|
if(slaves && Object.keys(slaves).length < 2000000){
|
||||||
console.log("saving to slaves.json");
|
console.log("saving to slaves.json");
|
||||||
fs.writeFileSync("database/slaves.json", JSON.stringify(slaves));
|
fs.writeFileSync("database/slaves.json", JSON.stringify(slaves));
|
||||||
} else if(slaves) {
|
} else if(slaves) {
|
||||||
|
|||||||
Reference in new issue
Block a user