Skip to content

Commit 33e0fb3

Browse files
authored
refactor: histogram to kv storage (#309)
1 parent 9b0ed7e commit 33e0fb3

11 files changed

Lines changed: 418 additions & 577 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 115 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ tempfile = { version = "3.10" }
8383
sqlite = { version = "0.34" }
8484

8585
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
86-
dirs = { version = "5" }
8786
rocksdb = { version = "0.23" }
8887

8988
[target.'cfg(target_arch = "wasm32")'.dependencies]

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
CARGO ?= cargo
33
WASM_PACK ?= wasm-pack
44
SQLLOGIC_PATH ?= tests/slt/**/*.slt
5+
PYO3_PYTHON ?= /usr/bin/python3.12
56

67
.PHONY: test test-python test-wasm test-slt test-all wasm-build check tpcc tpcc-dual cargo-check build wasm-examples native-examples fmt clippy
78

@@ -11,7 +12,7 @@ test:
1112

1213
## Run Python binding API tests implemented with pyo3.
1314
test-python:
14-
$(CARGO) test --features python test_python_
15+
PYO3_PYTHON=$(PYO3_PYTHON) $(CARGO) test --features python test_python_
1516

1617
## Perform a `cargo check` across the workspace.
1718
cargo-check:

src/execution/ddl/drop_index.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl From<DropIndexOperator> for DropIndex {
3131
impl<'a, T: Transaction + 'a> WriteExecutor<'a, T> for DropIndex {
3232
fn execute_mut(
3333
self,
34-
(table_cache, _, _): (&'a TableCache, &'a ViewCache, &'a StatisticsMetaCache),
34+
(table_cache, _, meta_cache): (&'a TableCache, &'a ViewCache, &'a StatisticsMetaCache),
3535
transaction: *mut T,
3636
) -> Executor<'a> {
3737
spawn_executor(move |co| async move {
@@ -45,6 +45,7 @@ impl<'a, T: Transaction + 'a> WriteExecutor<'a, T> for DropIndex {
4545
co,
4646
unsafe { &mut (*transaction) }.drop_index(
4747
table_cache,
48+
meta_cache,
4849
table_name,
4950
&index_name,
5051
if_exists

0 commit comments

Comments
 (0)