Fix buffer manager page leak.

This commit is contained in:
Sears Russell 2008-10-09 20:14:55 +00:00
parent 108d40ec16
commit edb51e5789

View file

@ -60,6 +60,8 @@ int TpageSetRange(int xid, pageid_t page, int offset, const void * memAddr, int
memcpy(logArg+sizeof(int), ((const byte*)memAddr), len); memcpy(logArg+sizeof(int), ((const byte*)memAddr), len);
memcpy(logArg+sizeof(int)+len, p->memAddr+offset, len); memcpy(logArg+sizeof(int)+len, p->memAddr+offset, len);
releasePage(p);
try_ret(compensation_error()) { try_ret(compensation_error()) {
Tupdate(xid,page,logArg,sizeof(int)+len*2,OPERATION_PAGE_SET_RANGE); Tupdate(xid,page,logArg,sizeof(int)+len*2,OPERATION_PAGE_SET_RANGE);
} end_ret(compensation_error()); } end_ret(compensation_error());