src/java/org/apache/cassandra/db/CounterColumn.java
/*
     * We have to special case digest creation for counter column because
     * we don't want to include the information about which shard of the
     * context is a delta or not, since this information differs from node to
     * node.
     */
We have to special case digest creation for counter column because
we don't want to include the information about which shard of the
context is a delta or not, since this information differs from node to
node.
We have to special case digest creation for counter column because we don ' t want to include the information about which shard of the context is a delta or not since this information differs from node to node .
@Override
    public void updateDigest(MessageDigest digest)
    {
        digest.update(name.duplicate());
        contextManager.updateDigest(digest, value);
        DataOutputBuffer buffer = new DataOutputBuffer();
        try
        {
            buffer.writeLong(timestamp);
            buffer.writeByte(serializationFlags());
            buffer.writeLong(timestampOfLastDelete);
        }
        catch (IOException e)
        {
            throw new RuntimeException(e);
        }
        digest.update(buffer.getData(), 0, buffer.getLength());
    }
@ Override public void updateDigest ( MessageDigest digest ) { digest . update ( name . duplicate ( ) ) ; contextManager . updateDigest ( digest , value ) ; DataOutputBuffer buffer = new DataOutputBuffer ( ) ; try { buffer . writeLong ( timestamp ) ; buffer . writeByte ( serializationFlags ( ) ) ; buffer . writeLong ( timestampOfLastDelete ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } digest . update ( buffer . getData ( ) , 0 , buffer . getLength ( ) ) ; }
We have to special case digest creation for counter column because
 we don't want to include the information about which shard of the
 context is a delta or not, since this information differs from node to
 node.
We have to special case digest creation for counter column because we don ' t want to include the information about which shard of the context is a delta or not since this information differs from node to node .
// We don't take the deltas into account in a digest