mirror of
https://github.com/neondatabase/neon.git
synced 2026-08-23 14:38:29 +00:00
fdd987c3ad
Introduce builder objects, DeltaLayerWriter and ImageLayerWriter. This gives more flexibility, as the DeltaLayer::create and ImageLayer::create functions don't need to know about the details of the format of where the page versions are coming from. This allows us to change the format used in InMemoryLayer more easily, without having to modify Delta- and ImageLayer code. Also refactor the code in InMemoryLayer::write_to_disk for clarity.