mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-17 02:12:56 +00:00
Fix with files > 4 GB
This commit is contained in:
@@ -185,7 +185,8 @@ impl PgImportEnv {
|
||||
let key_end = if last_file.nblocks.is_some() {
|
||||
rel_key_range(last_file.rel_tag).end
|
||||
} else {
|
||||
rel_block_to_key(last_file.rel_tag, (last_file.segno + 1) * 1024 * 1024 * 1024 / 8192)
|
||||
let end_blknum = (last_file.segno + 1) * (1024 * 1024 * 1024 / 8192);
|
||||
rel_block_to_key(last_file.rel_tag, end_blknum)
|
||||
};
|
||||
let mut layer_writer = ImageLayerWriter::new(
|
||||
&self.conf,
|
||||
|
||||
Reference in New Issue
Block a user