1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-01 09:28:22 +01:00
phorge-phorge/src/applications/diffusion/protocol
epriestley d254c1f8b1 Use "null", not "-1", as a local "no version" marker when performing intracluster repository sync
Summary:
Ref T13242. See <https://discourse.phabricator-community.org/t/out-of-range-value-for-column-deviceversion/2218>.

The synchronization log column is `uint32?` and `-1` doesn't go into that column.

Since we're only using `-1` for convenience to cheat through `$max_version > $this_version` checks, use `null` instead and make the checks more explicit.

Test Plan: Reproducing this is a bit tricky and I cheated fairly heavily to force the code down this pathway without actually building a multi-device cluster, but I did reproduce the original exception, apply the patch, and observe that it fixed things.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13242

Differential Revision: https://secure.phabricator.com/D20047
2019-01-28 18:50:01 -08:00
..
__tests__ Parse unusual Subversion protocol frames which contain extra whitespace 2018-05-16 17:12:41 -07:00
DiffusionCommandEngine.php Make the repository "Filesize Limit" and "Clone/Fetch Timeout" configurable in the UI 2018-11-28 14:34:00 -08:00
DiffusionGitCommandEngine.php Set GIT_SSH_VARIANT alongside GIT_SSH 2018-01-26 13:21:10 -08:00
DiffusionMercurialCommandEngine.php Filter and reject "--config" and "--debugger" flags to Mercurial in any position 2017-11-10 08:42:07 -08:00
DiffusionMercurialWireProtocol.php Support Mercurial "protocaps" wire command 2018-08-23 15:06:25 -07:00
DiffusionRepositoryClusterEngine.php Use "null", not "-1", as a local "no version" marker when performing intracluster repository sync 2019-01-28 18:50:01 -08:00
DiffusionRepositoryClusterEngineLogInterface.php Record lock timing information on PushEvents 2018-03-22 13:46:01 -07:00
DiffusionSubversionCommandEngine.php Pass SSH wrappers to VCS commands unconditonally, not just if there's an SSH remote 2017-08-10 17:49:55 -07:00
DiffusionSubversionWireProtocol.php Parse unusual Subversion protocol frames which contain extra whitespace 2018-05-16 17:12:41 -07:00