updated comments

This commit is contained in:
Evan Tschannen 2018-11-12 18:42:29 -08:00
parent ccdc83036d
commit 3f461f3706
2 changed files with 6 additions and 2 deletions

View File

@ -86,7 +86,7 @@ const Value datacenterReplicasValue( int const& );
Optional<Value> decodeDatacenterReplicasKey( KeyRef const& ); Optional<Value> decodeDatacenterReplicasKey( KeyRef const& );
int decodeDatacenterReplicasValue( ValueRef const& ); int decodeDatacenterReplicasValue( ValueRef const& );
// "\xff\x02/TLogDatacenters/[[datacenterID]]" // "\xff\x02/tLogDatacenters/[[datacenterID]]"
extern const KeyRangeRef tLogDatacentersKeys; extern const KeyRangeRef tLogDatacentersKeys;
extern const KeyRef tLogDatacentersPrefix; extern const KeyRef tLogDatacentersPrefix;
const Key tLogDatacentersKeyFor( Optional<Value> dcID ); const Key tLogDatacentersKeyFor( Optional<Value> dcID );

View File

@ -154,7 +154,11 @@ public:
int getNumberOfShards( UID ssID ); int getNumberOfShards( UID ssID );
vector<KeyRange> getShardsFor( Team team ); vector<KeyRange> getShardsFor( Team team );
//The first element of the pair is either the source for non-moving shards or the destination team for in-flight shards
//The second element of the pair is all previous sources for in-flight shards
std::pair<vector<Team>,vector<Team>> getTeamsFor( KeyRangeRef keys ); std::pair<vector<Team>,vector<Team>> getTeamsFor( KeyRangeRef keys );
void defineShard( KeyRangeRef keys ); void defineShard( KeyRangeRef keys );
void moveShard( KeyRangeRef keys, std::vector<Team> destinationTeam ); void moveShard( KeyRangeRef keys, std::vector<Team> destinationTeam );
void finishMove( KeyRangeRef keys ); void finishMove( KeyRangeRef keys );
@ -168,7 +172,7 @@ private:
} }
}; };
KeyRangeMap< std::pair<vector<Team>,vector<Team>> > shard_teams; // A shard can be affected by the failure of multiple teams if it is a queued merge KeyRangeMap< std::pair<vector<Team>,vector<Team>> > shard_teams; // A shard can be affected by the failure of multiple teams if it is a queued merge, or when usable_regions > 1
std::set< std::pair<Team,KeyRange>, OrderByTeamKey > team_shards; std::set< std::pair<Team,KeyRange>, OrderByTeamKey > team_shards;
std::map< UID, int > storageServerShards; std::map< UID, int > storageServerShards;