Add *true* page replace
parent
c914cddcc3
commit
81a23135c4
|
@ -346,6 +346,9 @@ YDB_Error ydb_replace_current_page(YDB_Engine *instance, YDB_TablePage *page) {
|
||||||
// Flush buffer
|
// Flush buffer
|
||||||
fflush(instance->fd);
|
fflush(instance->fd);
|
||||||
|
|
||||||
|
ydb_page_free(instance->curr_page);
|
||||||
|
instance->curr_page = page;
|
||||||
|
|
||||||
return YDB_ERR_SUCCESS;
|
return YDB_ERR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue