diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-23 20:51:45 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-24 11:27:09 +0300 |
commit | fa002aac4c3cb75722d973d199a73231062b890c (patch) | |
tree | b09d44844bae7528d63689dfaf7e46d4b668733c /bpkg/database.hxx | |
parent | 3f86fb3b73731f680bcffda83e4dddb6914eb13a (diff) |
Make database ordering consistent across runs
Diffstat (limited to 'bpkg/database.hxx')
-rw-r--r-- | bpkg/database.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bpkg/database.hxx b/bpkg/database.hxx index 889f8a0..c9ef590 100644 --- a/bpkg/database.hxx +++ b/bpkg/database.hxx @@ -518,10 +518,11 @@ namespace bpkg inline bool operator< (const database& x, const database& y) { - // Note that if we ever need the ordering to be consistent across runs, - // then we can compare the config paths or uuids. + // Note that we used to compare the database addresses here (as for the + // equality operator) until we needed the database ordering to be + // consistent across runs (to support --rebuild-checksum, etc). // - return &x < &y; + return x.config < y.config; } inline ostream& |