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

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема RE: err, XLOG/UW711/cc/Doesn't compile.
Дата
Msg-id Pine.LNX.4.21.0011201945170.1090-100000@peter.localdomain
обсуждение исходный текст
Ответ на RE: err, XLOG/UW711/cc/Doesn't compile.  ("Mikheev, Vadim" <vmikheev@SECTORBASE.COM>)
Ответы RE: err, XLOG/UW711/cc/Doesn't compile.
Re: err, XLOG/UW711/cc/Doesn't compile.
Список pgsql-hackers
Mikheev, Vadim writes:

> > 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.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



В списке pgsql-hackers по дате отправления: