RE: err, XLOG/UW711/cc/Doesn't compile.
От | Mikheev, Vadim |
---|---|
Тема | RE: err, XLOG/UW711/cc/Doesn't compile. |
Дата | |
Msg-id | 8F4C99C66D04D4118F580090272A7A234D319C@sectorbase1.sectorbase.com обсуждение исходный текст |
Ответ на | err, XLOG/UW711/cc/Doesn't compile. (Larry Rosenman <ler@lerctr.org>) |
Ответы |
Re: err, XLOG/UW711/cc/Doesn't compile.
|
Список | 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
В списке pgsql-hackers по дате отправления: