Home GnuPG

Add a read-only flag to database connections
1dddbacbb252Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Add a read-only flag to database connections

Summary:
Ref T4571. This allows individual connections to be flagged as "read-only". If we try to send writes over a read-only connection, the connection layer throws an exception.

This is part of moving toward a world where we degrade gracefully if the master database is unreachable, and can spread reads to replicas.

Test Plan: See next revision, which adds a basic read-only mode.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T4571

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

Details

Provenance
epriestley <git@epriestley.com>Authored on Apr 9 2016, 12:12 AM
Parents
rPHUTIL22a0253e08fd: Allow ConduitClient to use OAuth access tokens for authentication
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUTIL1dddbacbb252: Add a read-only flag to database connections (authored by epriestley <git@epriestley.com>).Apr 9 2016, 1:15 PM