mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-30 12:01:57 +00:00
put validation behind a feature flag
This commit is contained in:
committed by
Aiden McClelland
parent
70dc690437
commit
f45f3a5b33
@@ -14,6 +14,7 @@ version = "0.1.0"
|
|||||||
[features]
|
[features]
|
||||||
debug = ["tracing"]
|
debug = ["tracing"]
|
||||||
trace = ["debug", "tracing-error"]
|
trace = ["debug", "tracing-error"]
|
||||||
|
unstable = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-trait = "0.1.42"
|
async-trait = "0.1.42"
|
||||||
|
|||||||
@@ -325,6 +325,9 @@ impl LockOrderEnforcer {
|
|||||||
//
|
//
|
||||||
// Sequences
|
// Sequences
|
||||||
// LockRequest >> LockRequest
|
// LockRequest >> LockRequest
|
||||||
|
#[cfg(not(feature = "unstable"))]
|
||||||
|
return Ok(());
|
||||||
|
#[cfg(feature = "unstable")]
|
||||||
match self.locks_held.get(&req.handle_id) {
|
match self.locks_held.get(&req.handle_id) {
|
||||||
None => Ok(()),
|
None => Ok(()),
|
||||||
Some(m) => {
|
Some(m) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user