diff options
Diffstat (limited to 'src/mongo/s/versioning.cpp')
-rw-r--r-- | src/mongo/s/versioning.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/s/versioning.cpp b/src/mongo/s/versioning.cpp index 8a465a9cba5..ce51a7b4707 100644 --- a/src/mongo/s/versioning.cpp +++ b/src/mongo/s/versioning.cpp @@ -49,5 +49,9 @@ DatabaseVersion makeIncremented(const DatabaseVersion& v) { return dbv; } +bool equal(const DatabaseVersion& dbv1, const DatabaseVersion& dbv2) { + return dbv1.getUuid() == dbv2.getUuid() && dbv1.getLastMod() == dbv2.getLastMod(); +} + } // namespace databaseVersion } // namespace mongo |