Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHalpinParity committed Oct 26, 2023
1 parent 29db340 commit 5ffa528
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,8 @@ impl IndexTable {
}

pub fn drop_file(self) -> Result<()> {
if self.map.read().is_some() {
try_io!(std::fs::remove_file(self.path.as_path()));
}
drop(self.map);
try_io!(std::fs::remove_file(self.path.as_path()));
log::debug!(target: "parity-db", "{}: Dropped table", self.id);
Ok(())
}
Expand Down

0 comments on commit 5ffa528

Please sign in to comment.