From 81dd97d27f52c2f6d29325c5614a3fd204269e2e Mon Sep 17 00:00:00 2001 From: chaoguang <13974480+zjuLcg@users.noreply.github.com> Date: Tue, 31 Mar 2020 19:06:45 -0700 Subject: [PATCH] Change special keyspace to \xff\xff, \xff\xff\xff --- fdbclient/SpecialKeySpace.actor.h | 1 + fdbclient/SystemData.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fdbclient/SpecialKeySpace.actor.h b/fdbclient/SpecialKeySpace.actor.h index 61c7a706b4..8327c4356e 100644 --- a/fdbclient/SpecialKeySpace.actor.h +++ b/fdbclient/SpecialKeySpace.actor.h @@ -39,6 +39,7 @@ protected: class SpecialKeySpace { public: + // TODO : remove snapshot parameter Future> get(Reference ryw, const Key& key, bool snapshot = false); Future> getRange(Reference ryw, KeySelector begin, diff --git a/fdbclient/SystemData.cpp b/fdbclient/SystemData.cpp index 7168f3605f..2cd2d7f22b 100644 --- a/fdbclient/SystemData.cpp +++ b/fdbclient/SystemData.cpp @@ -28,7 +28,7 @@ const KeyRangeRef systemKeys(systemKeysPrefix, LiteralStringRef("\xff\xff") ); const KeyRangeRef nonMetadataSystemKeys(LiteralStringRef("\xff\x02"), LiteralStringRef("\xff\x03")); const KeyRangeRef allKeys = KeyRangeRef(normalKeys.begin, systemKeys.end); const KeyRef afterAllKeys = LiteralStringRef("\xff\xff\x00"); -const KeyRangeRef specialKeys = KeyRangeRef(LiteralStringRef("\xff\xff"), LiteralStringRef("\xff\xff\xff\xff")); +const KeyRangeRef specialKeys = KeyRangeRef(LiteralStringRef("\xff\xff"), LiteralStringRef("\xff\xff\xff")); // keyServersKeys.contains(k) iff k.startsWith(keyServersPrefix) const KeyRangeRef keyServersKeys( LiteralStringRef("\xff/keyServers/"), LiteralStringRef("\xff/keyServers0") );