Add *true* page replace

master
Yury Kurlykov 2019-10-31 03:14:25 +10:00
parent c914cddcc3
commit 81a23135c4
1 changed files with 3 additions and 0 deletions

View File

@ -346,6 +346,9 @@ YDB_Error ydb_replace_current_page(YDB_Engine *instance, YDB_TablePage *page) {
// Flush buffer
fflush(instance->fd);
ydb_page_free(instance->curr_page);
instance->curr_page = page;
return YDB_ERR_SUCCESS;
}