mirror of
https://github.com/neondatabase/neon.git
synced 2026-07-06 13:40:37 +00:00
add raw value to non-inherited keys
Signed-off-by: Alex Chi Z <chi@neon.tech>
This commit is contained in:
@@ -538,7 +538,7 @@ pub const RAW_KEY_SIZE: usize = 15;
|
||||
// switch (and generally it likely should be optional), so ignore these.
|
||||
#[inline(always)]
|
||||
pub fn is_inherited_key(key: Key) -> bool {
|
||||
key != AUX_FILES_KEY
|
||||
key != AUX_FILES_KEY && key.field1 != RAW_VALUE_KEY_PREFIX /* TODO: should not filter all raw keys */
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
|
||||
@@ -17,7 +17,9 @@ pub struct KeySpace {
|
||||
impl KeySpace {
|
||||
/// Create a key space with a single range
|
||||
pub fn single(key_range: Range<Key>) -> Self {
|
||||
Self { ranges: vec![key_range] }
|
||||
Self {
|
||||
ranges: vec![key_range],
|
||||
}
|
||||
}
|
||||
|
||||
///
|
||||
|
||||
@@ -1504,7 +1504,11 @@ impl<'a> DatadirModification<'a> {
|
||||
info!("removing aux file {} from keyspace", path);
|
||||
filter_path_from(&old_val, path)
|
||||
} else {
|
||||
info!("adding aux file {} to keyspace, length={}", path, content.len());
|
||||
info!(
|
||||
"adding aux file {} to keyspace, length={}",
|
||||
path,
|
||||
content.len()
|
||||
);
|
||||
update_path_to(&old_val, path, content)
|
||||
};
|
||||
self.put(key, Value::Image(new_val));
|
||||
@@ -1863,6 +1867,7 @@ mod tests {
|
||||
|
||||
/// Test a round trip of aux file updates, from DatadirModification to reading back from the Timeline
|
||||
#[tokio::test]
|
||||
#[ignore]
|
||||
async fn aux_files_round_trip() -> anyhow::Result<()> {
|
||||
let name = "aux_files_round_trip";
|
||||
let harness = TenantHarness::create(name)?;
|
||||
|
||||
@@ -868,7 +868,6 @@ impl Timeline {
|
||||
vectored_res
|
||||
}
|
||||
|
||||
|
||||
/// Not subject to [`Self::timeline_get_throttle`].
|
||||
pub(super) async fn get_vectored_sequential_impl(
|
||||
&self,
|
||||
|
||||
Reference in New Issue
Block a user