aboutsummaryrefslogtreecommitdiff
path: root/reftable/block.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-04-07 15:16:18 +0200
committerJunio C Hamano <gitster@pobox.com>2025-04-07 14:53:10 -0700
commit2b3362c10d39efe09fe9ef16122df3bed5149032 (patch)
tree4f1c5cd562d3fdfce1b6dab6f846aa5c0d541014 /reftable/block.h
parentfd888311fbc95b0cbb3c9e580dc6f7277bb7bf7f (diff)
downloadgit-2b3362c10d39efe09fe9ef16122df3bed5149032.tar.xz
reftable/block: rename `block` to `block_data`
The `reftable_block` structure associates a byte slice with a block source. As such it only holds the data of a reftable block without actually encoding any of the details for how to access that data. Rename the structure to instead be called `reftable_block_data`. Besides clarifying that this really only holds data, it also allows us to rename the `reftable_block_reader` to `reftable_block` in the next commit, as this is the structure that actually encapsulates access to the reftable blocks. Rename the `struct reftable_block_reader::block` member accordingly. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable/block.h')
-rw-r--r--reftable/block.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/reftable/block.h b/reftable/block.h
index 6afb1b2952..948b79e461 100644
--- a/reftable/block.h
+++ b/reftable/block.h
@@ -71,7 +71,7 @@ struct block_reader {
uint32_t header_off;
/* the memory block */
- struct reftable_block block;
+ struct reftable_block_data block_data;
uint32_t hash_size;
/* Uncompressed data for log entries. */