Skip to content

Commit 6516873

Browse files
restrict oss after enterprise
1 parent 0e4f849 commit 6516873

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/storage/store_metadata.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,13 @@ pub async fn resolve_parseable_metadata(
129129
Err("Could not start the server because staging directory indicates stale data from previous deployment, please choose an empty staging directory and restart the server")
130130
}
131131
EnvChange::NewStaging(mut metadata) => {
132+
133+
if metadata.server_mode == Mode::Prism {
134+
Err("Starting Parseable OSS is not permitted when Enterprise Mode is enabled. Please choose a different storage.")
135+
}
132136
// if server is started in ingest mode,we need to make sure that query mode has been started
133137
// i.e the metadata is updated to reflect the server mode = Query
134-
if metadata.server_mode== Mode::All && PARSEABLE.options.mode == Mode::Ingest {
138+
else if metadata.server_mode== Mode::All && PARSEABLE.options.mode == Mode::Ingest {
135139
Err("Starting Ingest Mode is not allowed, Since Query Server has not been started yet")
136140
} else {
137141
create_dir_all(PARSEABLE.options.staging_dir())?;

0 commit comments

Comments
 (0)