mirror of
https://github.com/NotAShelf/stash.git
synced 2026-05-09 00:45:32 +00:00
db: replace \CHECKED\ atomic flag with pattern-keyed regex cache
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I9d5fa5212c5418ce6bca02d05149e1356a6a6964
This commit is contained in:
parent
373affabee
commit
b1f43bdf7f
5 changed files with 106 additions and 39 deletions
|
|
@ -397,7 +397,7 @@ fn main() -> color_eyre::eyre::Result<()> {
|
|||
if expired {
|
||||
match db.cleanup_expired() {
|
||||
Ok(count) => {
|
||||
log::info!("Wiped {} expired entries", count);
|
||||
log::info!("Wiped {count} expired entries");
|
||||
},
|
||||
Err(e) => {
|
||||
log::error!("failed to wipe expired entries: {e}");
|
||||
|
|
@ -421,7 +421,7 @@ fn main() -> color_eyre::eyre::Result<()> {
|
|||
DbAction::Stats => {
|
||||
match db.stats() {
|
||||
Ok(stats) => {
|
||||
println!("{}", stats);
|
||||
println!("{stats}");
|
||||
},
|
||||
Err(e) => {
|
||||
log::error!("failed to get database stats: {e}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue