/// If the data is different from the ones that were inserted earlier with the same ID, throw an exception.
if(expected_checksum!=checksum)
{
if(!insert_id.empty())
throwException("Attempt to insert block with same ID but different checksum",ErrorCodes::CHECKSUM_DOESNT_MATCH);
else
throwException("Logical error: got ZNODEEXISTS while inserting data, block ID is derived from checksum but checksum doesn't match",ErrorCodes::LOGICAL_ERROR);
}
throwException("Logical error: got ZNODEEXISTS while inserting data, block ID is derived from checksum but checksum doesn't match",ErrorCodes::LOGICAL_ERROR);