Merge pull request #1585 from etschannen/release-6.1
added the ability to add a read conflict range on the metadata version key without the READ_SYSTEM_KEYS option
This commit is contained in:
commit
1d67cbdc6d
|
@ -1344,7 +1344,7 @@ void ReadYourWritesTransaction::addReadConflictRange( KeyRangeRef const& keys )
|
|||
}
|
||||
|
||||
if (tr.apiVersionAtLeast(300)) {
|
||||
if (keys.begin > getMaxReadKey() || keys.end > getMaxReadKey()) {
|
||||
if ((keys.begin > getMaxReadKey() || keys.end > getMaxReadKey()) && (keys.begin != metadataVersionKey || keys.end != metadataVersionKeyEnd)) {
|
||||
throw key_outside_legal_range();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -587,6 +587,7 @@ const KeyRef maxUIDKey = LiteralStringRef("\xff\xff\xff\xff\xff\xff\xff\xff\xff\
|
|||
|
||||
const KeyRef databaseLockedKey = LiteralStringRef("\xff/dbLocked");
|
||||
const KeyRef metadataVersionKey = LiteralStringRef("\xff/metadataVersion");
|
||||
const KeyRef metadataVersionKeyEnd = LiteralStringRef("\xff/metadataVersion\x00");
|
||||
const KeyRef metadataVersionRequiredValue = LiteralStringRef("\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00");
|
||||
const KeyRef mustContainSystemMutationsKey = LiteralStringRef("\xff/mustContainSystemMutations");
|
||||
|
||||
|
|
|
@ -266,6 +266,7 @@ extern const KeyRef maxUIDKey;
|
|||
|
||||
extern const KeyRef databaseLockedKey;
|
||||
extern const KeyRef metadataVersionKey;
|
||||
extern const KeyRef metadataVersionKeyEnd;
|
||||
extern const KeyRef metadataVersionRequiredValue;
|
||||
extern const KeyRef mustContainSystemMutationsKey;
|
||||
|
||||
|
|
Loading…
Reference in New Issue