Skip to content

Commit

Permalink
Merge branch 'main' into 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Dec 14, 2024
2 parents bd52297 + c7164d2 commit 122c77c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 289 deletions.
22 changes: 0 additions & 22 deletions src/abstract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,6 @@ pub trait AbstractTree {
#[cfg(feature = "bloom")]
fn bloom_filter_size(&self) -> usize;

/* /// Imports data from a flat file (see [`Tree::export`]),
/// blocking the caller until it is done.
///
/// # Errors
///
/// Returns error, if an IO error occurred, or the import was not successful.
fn import<P: AsRef<Path>>(&self, path: P) -> crate::Result<()>;
/// Exports the entire tree into a single flat file,
/// blocking the caller until it is done.
///
/// The format is as follows (numbers are big endian):
///
/// [N=key len; 2 bytes]\[key: N bytes]\[M=val len; 4 bytes]\[val: M bytes]\[item count; 8 bytes]\[checksum; 8 bytes]\[trailer; "LSMTEXP2"]
///
/// # Errors
///
/// Returns error, if an IO error occurred.
fn export<P: AsRef<Path>>(&self, path: P) -> crate::Result<()> {
export_tree(path, self.iter())
} */

#[doc(hidden)]
fn verify(&self) -> crate::Result<usize>;

Expand Down
4 changes: 0 additions & 4 deletions src/blob_tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,6 @@ impl AbstractTree for BlobTree {
self.index.is_first_level_disjoint()
}

/* fn import<P: AsRef<Path>>(&self, path: P) -> crate::Result<()> {
import_tree(path, self)
} */

#[doc(hidden)]
fn verify(&self) -> crate::Result<usize> {
let index_tree_sum = self.index.verify()?;
Expand Down
259 changes: 0 additions & 259 deletions src/export._rs

This file was deleted.

4 changes: 0 additions & 4 deletions src/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ impl AbstractTree for Tree {
.is_disjoint
}

/* fn import<P: AsRef<Path>>(&self, path: P) -> crate::Result<()> {
import_tree(path, self)
} */

fn verify(&self) -> crate::Result<usize> {
// NOTE: Lock memtable to prevent any tampering with disk segments
let _lock = self.lock_active_memtable();
Expand Down

0 comments on commit 122c77c

Please sign in to comment.