Home GnuPG

Don't stop on read-only mode for read-only storage workflows
b352cae97de4Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Don't stop on read-only mode for read-only storage workflows

Summary:
Fixes T11042. Currently, all bin/storage workflows stop if cluster.read-only is set:

$ ./bin/storage adjust
Usage Exception: Phabricator is currently in read-only mode. Use --force to override this mode.

However, some of them (status, dump, databases, etc) are read-only anyway and safe to run. Don't prompt in these cases.

Test Plan:

  • Set cluster.read-only to true.
  • Ran bin/storage dump, bin/storage status, etc. No longer received messages.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11042

Differential Revision: https://secure.phabricator.com/D15987

Details

Provenance
epriestley <git@epriestley.com>Authored on May 30 2016, 5:30 PM
Parents
rPHAB10cc633b88b2: Warn and continue when failing to extract pht() strings
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHABb352cae97de4: Don't stop on read-only mode for read-only storage workflows (authored by epriestley <git@epriestley.com>).May 30 2016, 6:30 PM