Fix buffer manager page leak.
This commit is contained in:
parent
108d40ec16
commit
edb51e5789
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue