Use specialkeys

This commit is contained in:
chaoguang 2020-03-31 19:05:47 -07:00
parent c8abd9c493
commit debbe648e8
1 changed files with 1 additions and 2 deletions

View File

@ -1281,8 +1281,7 @@ Future< Standalone<RangeResultRef> > ReadYourWritesTransaction::getRange(
}
// start with simplest point, special key space are only allowed to query if both begin and end start with \xff\xff
const KeyRef specialKeyPrefix = systemKeys.end;
if (begin.getKey().startsWith(specialKeyPrefix) && end.getKey().startsWith(specialKeyPrefix))
if (begin.getKey().startsWith(specialKeys.begin) && end.getKey().startsWith(specialKeys.end))
return getDatabase()->specialKeySpace->getRange(Reference<ReadYourWritesTransaction>(this), begin, end, limits, snapshot, reverse);
// Use special key prefix "\xff\xff/transaction/conflicting_keys/<some_key>",