diff options
author | David Storch <david.storch@10gen.com> | 2016-06-08 15:33:57 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2016-06-10 18:43:23 -0400 |
commit | 72b444d2831f018f3ae27219d07c69e6a3a60213 (patch) | |
tree | 963a2a7a82eb2f06705603e033d3cf8cda202d7f /src/mongo/base | |
parent | 9d7981ac25bae25c7764c44eb6bd58942a1aae43 (diff) | |
download | mongo-72b444d2831f018f3ae27219d07c69e6a3a60213.tar.gz |
SERVER-24183 persist collation version string in catalog metadata
Also add an fassert() which trips if the icu::Collator attached to a
collection or index has a version string which does not match the
version string persisted in the catalog. This will ensure that the
icu::Collator always matches the collator used when the index was
initially constructed.
The collation's version string is simply the ICU release number. All
collations should currently be version 57.1.
Diffstat (limited to 'src/mongo/base')
-rw-r--r-- | src/mongo/base/error_codes.err | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/base/error_codes.err b/src/mongo/base/error_codes.err index 204986baed2..0fc6e583dae 100644 --- a/src/mongo/base/error_codes.err +++ b/src/mongo/base/error_codes.err @@ -159,6 +159,7 @@ error_code("CanRepairToDowngrade", 157) error_code("MustUpgrade", 158) error_code("DurationOverflow", 159) error_code("MaxStalenessOutOfRange", 160) +error_code("IncompatibleCollationVersion", 161) # Non-sequential error codes (for compatibility only) error_code("SocketException", 9001) |