Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
Removed the old lock manager, not needed anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
chotchki committed Aug 23, 2021
1 parent 759b978 commit fcfd6ce
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
6 changes: 1 addition & 5 deletions benches/feophant_benchmark.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
use std::sync::Arc;
use std::time::Duration;

use criterion::BenchmarkId;
use criterion::Criterion;
use criterion::{criterion_group, criterion_main};

use feophantlib::constants::Nullable;
use feophantlib::engine::io::row_formats::RowData;
use feophantlib::engine::io::FileManager;
use feophantlib::engine::io::LockCacheManager;
use feophantlib::engine::io::LockManager;
use feophantlib::engine::io::RowManager;
use feophantlib::engine::objects::types::BaseSqlTypes;
use feophantlib::engine::objects::types::BaseSqlTypesMapper;
Expand All @@ -18,6 +13,7 @@ use feophantlib::engine::objects::SqlTuple;
use feophantlib::engine::objects::Table;
use feophantlib::engine::transactions::TransactionId;
use futures::pin_mut;
use std::sync::Arc;
use tempfile::TempDir;
use tokio::runtime::Builder;
use tokio_stream::StreamExt;
Expand Down
3 changes: 0 additions & 3 deletions src/engine/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ mod lock_cache_manager;
pub use lock_cache_manager::LockCacheManager;
pub use lock_cache_manager::LockCacheManagerError;

mod lock_manager;
pub use lock_manager::LockManager;

pub mod page_formats;

pub mod row_formats;
Expand Down
3 changes: 1 addition & 2 deletions src/engine/io/free_space_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ use crate::constants::PAGE_SIZE;
use bytes::{Buf, BytesMut};
use thiserror::Error;

const MAX_FREESPACE_COUNT: usize = 32;

#[derive(Clone, Debug)]
pub struct FreeSpaceManager {
lock_cache_manager: LockCacheManager,
Expand Down Expand Up @@ -120,6 +118,7 @@ impl FreeSpaceManager {

/// Gets the status of a field inside a page, you MUST pass an offset
/// that fits in the buffer.
//TODO Decide if I end up keeping this or maybe move it to the unit test section?
fn get_status_inside_page(buffer: &BytesMut, offset: usize) -> FreeStat {
let offset_index = offset / 8;
let offset_subindex = offset % 8;
Expand Down
5 changes: 1 addition & 4 deletions tests/visibility_tests.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use feophantlib::{
constants::Nullable,
engine::{
io::{
row_formats::RowData, FileManager, LockCacheManager, LockManager, RowManager,
VisibleRowManager,
},
io::{row_formats::RowData, FileManager, LockCacheManager, RowManager, VisibleRowManager},
objects::{
types::{BaseSqlTypes, BaseSqlTypesMapper},
Attribute, SqlTuple, Table,
Expand Down

0 comments on commit fcfd6ce

Please sign in to comment.