Return-Path: Delivered-To: apmail-avro-dev-archive@www.apache.org Received: (qmail 15605 invoked from network); 14 Oct 2010 19:23:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Oct 2010 19:23:53 -0000 Received: (qmail 91202 invoked by uid 500); 14 Oct 2010 19:23:53 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 91151 invoked by uid 500); 14 Oct 2010 19:23:53 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 91143 invoked by uid 99); 14 Oct 2010 19:23:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 19:23:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 19:23:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9EJNWtp014857 for ; Thu, 14 Oct 2010 19:23:33 GMT Message-ID: <10858063.147851287084212559.JavaMail.jira@thor> Date: Thu, 14 Oct 2010 15:23:32 -0400 (EDT) From: "Doug Cutting (JIRA)" To: dev@avro.apache.org Subject: [jira] Assigned: (AVRO-675) Bytes and fixed setters don't update datum size In-Reply-To: <15121392.484931285880432960.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doug Cutting reassigned AVRO-675: --------------------------------- Assignee: Douglas Creager > Bytes and fixed setters don't update datum size > ----------------------------------------------- > > Key: AVRO-675 > URL: https://issues.apache.org/jira/browse/AVRO-675 > Project: Avro > Issue Type: Bug > Components: c > Affects Versions: 1.4.0 > Reporter: Douglas Creager > Assignee: Douglas Creager > Fix For: 1.4.1 > > Attachments: avro-675.patch > > Original Estimate: 0.25h > Remaining Estimate: 0.25h > > The setter methods for bytes and fixed datum instances don't update the size field. So, for instance, if you create a datum: > {{avro_datum_t datum = avro_wrapbytes(NULL, 0);}} > Then later you update that datum to point to a different buffer: > {{avro_wrapbytes_set(datum, "hello", 5);}} > If you write that datum out to a file, you'll get a zero-length value in the output, since the size pointer didn't get updated from 0 to 5. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.