We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b216b5 commit 1a877aeCopy full SHA for 1a877ae
1 file changed
libsql/src/local/connection.rs
@@ -584,9 +584,11 @@ impl WalInsertHandle<'_> {
584
585
impl Drop for WalInsertHandle<'_> {
586
fn drop(&mut self) {
587
- if let Err(err) = self.conn.wal_insert_end() {
588
- tracing::error!("{:?}", err);
589
- Err(err).unwrap()
+ if *self.in_session.borrow() {
+ if let Err(err) = self.conn.wal_insert_end() {
+ tracing::error!("{:?}", err);
590
+ Err(err).unwrap()
591
+ }
592
}
593
594
0 commit comments