Пример #1
0
        public void Analize(KeyBucketTableService kbt, BucketShardTableService bst)
        {
            Dictionary <int, string> BSTable = bst.GetNewTable();

            foreach (var row in BSTable)
            {
                if (row.Value != bst.GetTable()[row.Key])
                {
                    Reshard(bst.GetTable()[row.Key], row.Value, FindRowsFromBucket(row.Key, kbt.GetTable()));
                    bst.ChangeShard(row.Key, BSTable[row.Key]);
                }
            }
        }
Пример #2
0
 private static string GetShard(int bucket)
 {
     return(bst.GetTable()[bucket]);
 }