예제 #1
0
        private void UpdatePartitions(Connection conn, Dictionary <string, string> infoMap)
        {
            string genString = infoMap["partition-generation"];

            if (genString == null || genString.Length == 0)
            {
                throw new AerospikeException.Parse("partition-generation is empty");
            }

            int generation = Convert.ToInt32(genString);

            if (partitionGeneration != generation)
            {
                if (Log.DebugEnabled())
                {
                    Log.Debug("Node " + this + " partition generation " + generation + " changed.");
                }
                partitionGeneration = cluster.UpdatePartitions(conn, this);
            }
        }