Skip to content

Commit

Permalink
code review fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Romy <35330373+romayalon@users.noreply.github.com>
  • Loading branch information
romayalon committed Jan 18, 2024
1 parent 5d3b72c commit 1e64e6c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/cmd/nsfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ require('aws-sdk/lib/maintenance_mode_message').suppress = true;
const dbg = require('../util/debug_module')(__filename);
if (!dbg.get_process_name()) dbg.set_process_name('nsfs');
dbg.original_console();

// NC nsfs deployments specifying process.env.LOCAL_MD_SERVER=true deployed together with a db
// when a system_store object is initialized VaccumAnalyzer is being called once a day.
// when NC nsfs deployed without db we would like to avoid running VaccumAnalyzer in any flow there is
// because running it will cause a panic.
if (process.env.LOCAL_MD_SERVER !== 'true') {
process.env.NC_NSFS_NO_DB_ENV = 'true';
}
Expand All @@ -18,7 +23,9 @@ const fs = require('fs');
const util = require('util');
const minimist = require('minimist');

require('../server/system_services/system_store').get_instance({ standalone: true });
if (process.env.LOCAL_MD_SERVER === 'true') {
require('../server/system_services/system_store').get_instance({ standalone: true });
}

//const js_utils = require('../util/js_utils');
const nb_native = require('../util/nb_native');
Expand Down

0 comments on commit 1e64e6c

Please sign in to comment.