0

Upgrade versions of vendored libs

This commit is contained in:
eleksir
2023-05-18 23:55:10 +03:00
parent 4869c146fe
commit 7958db9c0d
555 changed files with 36170 additions and 15565 deletions

View File

@@ -40,7 +40,7 @@ func (s *readState) unref() {
}
s.current.Unref()
for _, mem := range s.memtables {
mem.readerUnref()
mem.readerUnref(true)
}
// The last reference to the readState was released. Check to see if there
@@ -58,7 +58,7 @@ func (s *readState) unrefLocked() {
}
s.current.UnrefLocked()
for _, mem := range s.memtables {
mem.readerUnref()
mem.readerUnrefLocked(true)
}
// NB: Unlike readState.unref(), we don't attempt to cleanup newly obsolete
@@ -78,8 +78,7 @@ func (d *DB) loadReadState() *readState {
// updateReadStateLocked creates a new readState from the current version and
// list of memtables. Requires DB.mu is held. If checker is not nil, it is
// called after installing the new readState. If atomicFunc is not nil, it is
// executed atomically with the transition to the new read state.
// called after installing the new readState.
func (d *DB) updateReadStateLocked(checker func(*DB) error) {
s := &readState{
db: d,