From d674a59cb0246934d6a73c380de7355e10342f9f Mon Sep 17 00:00:00 2001 From: akvlad Date: Thu, 13 Jun 2024 16:52:13 +0300 Subject: [PATCH] MODE=all added --- common.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common.js b/common.js index b3bf76ab..75aa5f6f 100644 --- a/common.js +++ b/common.js @@ -160,5 +160,7 @@ module.exports.metricType = boolEnv('DISTINGUISH_LOGS_METRICS') ? 2 : 0 module.exports.bothType = 0 -module.exports.writerMode = (process.env.MODE === 'writer' || !process.env.MODE) && !boolEnv('READONLY') -module.exports.readerMode = process.env.MODE === 'reader' || boolEnv('READONLY') || !process.env.MODE +module.exports.writerMode = (process.env.MODE === 'writer' || !process.env.MODE || process.env.MODE === 'all') && + !boolEnv('READONLY') +module.exports.readerMode = process.env.MODE === 'reader' || process.env.MODE === 'all' || boolEnv('READONLY') || + !process.env.MODE