mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
Release snapshot.
This commit is contained in:
@@ -279,6 +279,9 @@ func (m *mvccFile) Unlock(lock vfs.LockLevel) error {
|
|||||||
m.waiter.Broadcast()
|
m.waiter.Broadcast()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if lock == vfs.LOCK_NONE {
|
||||||
|
m.data = nil
|
||||||
|
}
|
||||||
m.lock = lock
|
m.lock = lock
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@@ -299,6 +302,8 @@ func (m *mvccFile) CommitPhaseTwo() error {
|
|||||||
m.mtx.Lock()
|
m.mtx.Lock()
|
||||||
defer m.mtx.Unlock()
|
defer m.mtx.Unlock()
|
||||||
m.mvccDB.data = m.data
|
m.mvccDB.data = m.data
|
||||||
|
m.lock = vfs.LOCK_NONE
|
||||||
|
m.data = nil
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user