RE: err, XLOG/UW711/cc/Doesn't compile.

From: "Mikheev, Vadim" <vmikheev(at)SECTORBASE(dot)COM>
To: "'Peter Eisentraut'" <peter_e(at)gmx(dot)net>
Cc: "'Larry Rosenman'" <ler(at)lerctr(dot)org>, PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: RE: err, XLOG/UW711/cc/Doesn't compile.
Date: 2000-11-20 19:12:18
Message-ID: 8F4C99C66D04D4118F580090272A7A234D319C@sectorbase1.sectorbase.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > > more info. It seems to not like the following from
> > > src/include/buffer/bufpage.h (line 305):
> > > #define PageSetLSN(page, lsn) \
> > > (((PageHeader) (page))->pd_lsn = (XLogRecPtr) (lsn))
> > >
> > > I'm not sure what it's trying to do...
> >
> > Just assign values to 8 bytes structure in pageheader.
>
> It's because XLogRecPtr is a struct. You can't assign structs with
> '='. Gotta use memcpy, etc.

I had no problems with this on Solaris & Linux. Also I think that
there are another places in code where it worked so far.
Anyway, there are just two members in this struct - Larry, could
you try make this assignment by members and let us know ?

Vadim

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mikheev, Vadim 2000-11-20 19:13:49 RE: err, XLOG/UW711/cc/Doesn't compile.
Previous Message Peter Eisentraut 2000-11-20 18:58:27 RE: err, XLOG/UW711/cc/Doesn't compile.