mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 17:30:36 +00:00
Upgrade levelqueue 0.4.1 (#16696)
This commit is contained in:
parent
f5158b4304
commit
f7a302ca6f
4 changed files with 8 additions and 8 deletions
2
go.mod
2
go.mod
|
@ -10,7 +10,7 @@ require (
|
||||||
gitea.com/go-chi/cache v0.0.0-20210110083709-82c4c9ce2d5e
|
gitea.com/go-chi/cache v0.0.0-20210110083709-82c4c9ce2d5e
|
||||||
gitea.com/go-chi/captcha v0.0.0-20210110083842-e7696c336a1e
|
gitea.com/go-chi/captcha v0.0.0-20210110083842-e7696c336a1e
|
||||||
gitea.com/go-chi/session v0.0.0-20210108030337-0cb48c5ba8ee
|
gitea.com/go-chi/session v0.0.0-20210108030337-0cb48c5ba8ee
|
||||||
gitea.com/lunny/levelqueue v0.4.0
|
gitea.com/lunny/levelqueue v0.4.1
|
||||||
github.com/Microsoft/go-winio v0.5.0 // indirect
|
github.com/Microsoft/go-winio v0.5.0 // indirect
|
||||||
github.com/NYTimes/gziphandler v1.1.1
|
github.com/NYTimes/gziphandler v1.1.1
|
||||||
github.com/ProtonMail/go-crypto v0.0.0-20210705153151-cc34b1f6908b // indirect
|
github.com/ProtonMail/go-crypto v0.0.0-20210705153151-cc34b1f6908b // indirect
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -49,8 +49,8 @@ gitea.com/go-chi/captcha v0.0.0-20210110083842-e7696c336a1e h1:YjaQU6XFicdhPN+Ml
|
||||||
gitea.com/go-chi/captcha v0.0.0-20210110083842-e7696c336a1e/go.mod h1:nfA7JaGv3hbGQ1ktdhAsZhdS84qKffI8NMlHr+Opsog=
|
gitea.com/go-chi/captcha v0.0.0-20210110083842-e7696c336a1e/go.mod h1:nfA7JaGv3hbGQ1ktdhAsZhdS84qKffI8NMlHr+Opsog=
|
||||||
gitea.com/go-chi/session v0.0.0-20210108030337-0cb48c5ba8ee h1:9U6HuKUBt/cGK6T/64dEuz0r7Yp97WAAEJvXHDlY3ws=
|
gitea.com/go-chi/session v0.0.0-20210108030337-0cb48c5ba8ee h1:9U6HuKUBt/cGK6T/64dEuz0r7Yp97WAAEJvXHDlY3ws=
|
||||||
gitea.com/go-chi/session v0.0.0-20210108030337-0cb48c5ba8ee/go.mod h1:Ozg8IchVNb/Udg+ui39iHRYqVHSvf3C99ixdpLR8Vu0=
|
gitea.com/go-chi/session v0.0.0-20210108030337-0cb48c5ba8ee/go.mod h1:Ozg8IchVNb/Udg+ui39iHRYqVHSvf3C99ixdpLR8Vu0=
|
||||||
gitea.com/lunny/levelqueue v0.4.0 h1:v+bCR1lwLTBpZMshguWNhGIFLkUj+R04pgaU3TcJFS8=
|
gitea.com/lunny/levelqueue v0.4.1 h1:RZ+AFx5gBsZuyqCvofhAkPQ9uaVDPJnsULoJZIYaJNw=
|
||||||
gitea.com/lunny/levelqueue v0.4.0/go.mod h1:HBqmLbz56JWpfEGG0prskAV97ATNRoj5LDmPicD22hU=
|
gitea.com/lunny/levelqueue v0.4.1/go.mod h1:HBqmLbz56JWpfEGG0prskAV97ATNRoj5LDmPicD22hU=
|
||||||
gitea.com/xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a h1:lSA0F4e9A2NcQSqGqTOXqu2aRi/XEQxDCBwM8yJtE6s=
|
gitea.com/xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a h1:lSA0F4e9A2NcQSqGqTOXqu2aRi/XEQxDCBwM8yJtE6s=
|
||||||
gitea.com/xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a/go.mod h1:EXuID2Zs0pAQhH8yz+DNjUbjppKQzKFAn28TMYPB6IU=
|
gitea.com/xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a/go.mod h1:EXuID2Zs0pAQhH8yz+DNjUbjppKQzKFAn28TMYPB6IU=
|
||||||
github.com/6543/go-version v1.3.1 h1:HvOp+Telns7HWJ2Xo/05YXQSB2bE0WmVgbHqwMPZT4U=
|
github.com/6543/go-version v1.3.1 h1:HvOp+Telns7HWJ2Xo/05YXQSB2bE0WmVgbHqwMPZT4U=
|
||||||
|
|
8
vendor/gitea.com/lunny/levelqueue/queue.go
generated
vendored
8
vendor/gitea.com/lunny/levelqueue/queue.go
generated
vendored
|
@ -21,8 +21,8 @@ const (
|
||||||
// Queue defines a queue struct
|
// Queue defines a queue struct
|
||||||
type Queue struct {
|
type Queue struct {
|
||||||
db *leveldb.DB
|
db *leveldb.DB
|
||||||
highLock sync.Mutex
|
lowLock sync.Mutex // If you are locking both high and low locks, lock the low lock before the high lock
|
||||||
lowLock sync.Mutex
|
highLock sync.Mutex // If you are locking both high and low locks, lock the low lock before the high lock
|
||||||
low int64
|
low int64
|
||||||
high int64
|
high int64
|
||||||
lowKey []byte
|
lowKey []byte
|
||||||
|
@ -295,10 +295,10 @@ func (queue *Queue) LHandle(h func([]byte) error) error {
|
||||||
|
|
||||||
// Close closes the queue (and the underlying db is set to closeUnderlyingDB)
|
// Close closes the queue (and the underlying db is set to closeUnderlyingDB)
|
||||||
func (queue *Queue) Close() error {
|
func (queue *Queue) Close() error {
|
||||||
queue.highLock.Lock()
|
|
||||||
queue.lowLock.Lock()
|
queue.lowLock.Lock()
|
||||||
defer queue.highLock.Unlock()
|
queue.highLock.Lock()
|
||||||
defer queue.lowLock.Unlock()
|
defer queue.lowLock.Unlock()
|
||||||
|
defer queue.highLock.Unlock()
|
||||||
|
|
||||||
if !queue.closeUnderlyingDB {
|
if !queue.closeUnderlyingDB {
|
||||||
queue.db = nil
|
queue.db = nil
|
||||||
|
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
@ -25,7 +25,7 @@ gitea.com/go-chi/session/couchbase
|
||||||
gitea.com/go-chi/session/memcache
|
gitea.com/go-chi/session/memcache
|
||||||
gitea.com/go-chi/session/mysql
|
gitea.com/go-chi/session/mysql
|
||||||
gitea.com/go-chi/session/postgres
|
gitea.com/go-chi/session/postgres
|
||||||
# gitea.com/lunny/levelqueue v0.4.0
|
# gitea.com/lunny/levelqueue v0.4.1
|
||||||
## explicit
|
## explicit
|
||||||
gitea.com/lunny/levelqueue
|
gitea.com/lunny/levelqueue
|
||||||
# github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c
|
# github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c
|
||||||
|
|
Loading…
Reference in a new issue