Merge branch 'main' into crepererum/database_creation_code_move

pull/24376/head
kodiakhq[bot] 2021-08-12 09:30:33 +00:00 committed by GitHub
commit c46c2a35fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
34 changed files with 36 additions and 40 deletions

1
Cargo.lock generated
View File

@ -3874,7 +3874,6 @@ dependencies = [
"serde_json",
"snafu",
"snap",
"tempfile",
"test_helpers",
"tikv-jemalloc-ctl",
"tokio",

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![allow(clippy::clone_on_ref_ptr)]
pub mod bitset;

View File

@ -2,7 +2,7 @@
//! servers including replicated data, rules for how data is split up and
//! queried, and what gets stored in the write buffer database.
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_debug_implementations,
clippy::explicit_iter_loop,

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![allow(clippy::clone_on_ref_ptr)]
use std::sync::Arc;

View File

@ -1,7 +1,7 @@
// This crate deliberately does not use the same linting rules as the other
// crates because of all the generated code it contains that we don't have much
// control over.
#![deny(broken_intra_doc_links, rustdoc::bare_urls)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls)]
/// This module imports the generated protobuf code into a Rust module
/// hierarchy that matches the namespace hierarchy of the protobuf

View File

@ -1,7 +1,7 @@
// This crate deliberately does not use the same linting rules as the other
// crates because of all the generated code it contains that we don't have much
// control over.
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![allow(
unused_imports,
clippy::redundant_static_lifetimes,

View File

@ -166,7 +166,7 @@
//! # }
//! ```
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_copy_implementations,
missing_debug_implementations,

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_copy_implementations,
missing_debug_implementations,

View File

@ -1,6 +1,6 @@
//! An InfluxDB IOx API client.
#![deny(
broken_intra_doc_links,
rustdoc::broken_intra_doc_links,
rustdoc::bare_urls,
rust_2018_idioms,
missing_debug_implementations,

View File

@ -7,7 +7,7 @@
//! However, this implementation uses a nom combinator based parser
//! rather than attempting to port the imperative Go logic.
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_copy_implementations,
missing_debug_implementations,

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_copy_implementations,
missing_debug_implementations,

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_debug_implementations,
clippy::explicit_iter_loop,

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_copy_implementations,
missing_debug_implementations,

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
use observability_deps::{
tracing::{

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![allow(clippy::type_complexity)]
pub mod adapter;
pub mod column;

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_debug_implementations,
clippy::explicit_iter_loop,

View File

@ -142,10 +142,7 @@ impl MBChunk {
/// Returns a queryable snapshot of this chunk
#[cfg(feature = "nocache")]
pub fn snapshot(&self) -> Arc<ChunkSnapshot> {
Arc::new(ChunkSnapshot::new(
self,
self.metrics.memory_bytes.clone_empty(),
))
Arc::new(ChunkSnapshot::new(self))
}
/// Return the name of the table in this chunk

View File

@ -50,7 +50,7 @@
//! is done on a per-Chunk basis, so that as soon as the chunk is
//! closed the corresponding dictionary also becomes immutable
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_copy_implementations,
missing_debug_implementations,

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_copy_implementations,
missing_debug_implementations,

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_copy_implementations,
missing_debug_implementations,

View File

@ -1,7 +1,7 @@
//! Custom panic hook that sends the panic information to a tracing
//! span
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_debug_implementations,
clippy::explicit_iter_loop,

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_copy_implementations,
missing_debug_implementations,

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_copy_implementations,
missing_debug_implementations,

View File

@ -1,5 +1,5 @@
//! Contains the IOx query engine
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_debug_implementations,
clippy::explicit_iter_loop,

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(clippy::clone_on_ref_ptr, clippy::use_self)]
#![allow(dead_code, clippy::too_many_arguments)]
mod chunk;

View File

@ -45,7 +45,6 @@ serde = "1.0"
serde_json = "1.0"
snafu = "0.6"
snap = "1.0.0"
tempfile = "3.1.0"
tikv-jemalloc-ctl = "0.4.0"
tokio = { version = "1.0", features = ["macros", "time"] }
tokio-util = { version = "0.6.3" }

View File

@ -153,7 +153,7 @@ pub async fn create_preserved_catalog(
/// All input required to create an empty [`Loader`]
#[derive(Debug)]
pub struct LoaderEmptyInput {
struct LoaderEmptyInput {
domain: ::metrics::Domain,
metrics_registry: Arc<::metrics::MetricRegistry>,
metric_labels: Vec<KeyValue>,

View File

@ -59,7 +59,7 @@
//! └────────────┘ └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
//! ```
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_debug_implementations,
clippy::explicit_iter_loop,

View File

@ -1,5 +1,5 @@
//! Entrypoint of InfluxDB IOx binary
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_debug_implementations,
clippy::explicit_iter_loop,

View File

@ -1,8 +1,9 @@
#![recursion_limit = "512"]
/// Prints what CPU features are used by the compiler by default
/// Script from
/// https://stackoverflow.com/questions/65156743/what-target-features-uses-rustc-by-default
/// https://gist.github.com/AngelicosPhosphoros/4f8c9f08656e0812f4ed3560e53bd600
/// Prints what CPU features are used by the compiler by default.
///
/// Script from:
/// - <https://stackoverflow.com/questions/65156743/what-target-features-uses-rustc-by-default>
/// - <https://gist.github.com/AngelicosPhosphoros/4f8c9f08656e0812f4ed3560e53bd600>
// This script prints all cpu features which active in this build.
// There are 3 steps in usage of script:

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_copy_implementations,
missing_debug_implementations,

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_debug_implementations,
clippy::explicit_iter_loop,

View File

@ -1,6 +1,6 @@
//! Log and trace initialization and setup
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_copy_implementations,
missing_debug_implementations,

View File

@ -1,4 +1,4 @@
#![deny(broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)]
#![warn(
missing_copy_implementations,
missing_debug_implementations,