aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgary rong <garyrong0905@gmail.com>2019-03-04 21:43:45 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-03-04 21:43:45 +0800
commit603a85218b0276b197808c2829a685f7c448d471 (patch)
treed8a6b72f4d0dae218396b74df618f5d72173e93b
parentf9aa1cd21f776a4d3267d9c89772bdc622468d6d (diff)
downloadgo-tangerine-603a85218b0276b197808c2829a685f7c448d471.tar
go-tangerine-603a85218b0276b197808c2829a685f7c448d471.tar.gz
go-tangerine-603a85218b0276b197808c2829a685f7c448d471.tar.bz2
go-tangerine-603a85218b0276b197808c2829a685f7c448d471.tar.lz
go-tangerine-603a85218b0276b197808c2829a685f7c448d471.tar.xz
go-tangerine-603a85218b0276b197808c2829a685f7c448d471.tar.zst
go-tangerine-603a85218b0276b197808c2829a685f7c448d471.zip
vendor: update leveldb (#19201)
-rw-r--r--vendor/github.com/syndtr/goleveldb/leveldb/version.go6
-rw-r--r--vendor/vendor.json6
2 files changed, 9 insertions, 3 deletions
diff --git a/vendor/github.com/syndtr/goleveldb/leveldb/version.go b/vendor/github.com/syndtr/goleveldb/leveldb/version.go
index 63b86fe54..51361e5d8 100644
--- a/vendor/github.com/syndtr/goleveldb/leveldb/version.go
+++ b/vendor/github.com/syndtr/goleveldb/leveldb/version.go
@@ -486,6 +486,12 @@ func (p *versionStaging) finish(trivial bool) *version {
nt = append(nt, t)
}
+ // Avoid resort if only files in this level are deleted
+ if len(scratch.added) == 0 {
+ nv.levels[level] = nt
+ continue
+ }
+
// For normal table compaction, one compaction will only involve two levels
// of files. And the new files generated after merging the source level and
// source+1 level related files can be inserted as a whole into source+1 level
diff --git a/vendor/vendor.json b/vendor/vendor.json
index 782745166..a7cd0821e 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -455,10 +455,10 @@
"revisionTime": "2017-07-05T02:17:15Z"
},
{
- "checksumSHA1": "4DuP8qJfeXFfdbcl4wr7l1VppcY=",
+ "checksumSHA1": "4vxle8JfbPDO0ndiBUjMmRXGBQM=",
"path": "github.com/syndtr/goleveldb/leveldb",
- "revision": "4217c9f31f5816db02addc94e56061da77f288d8",
- "revisionTime": "2019-02-26T15:37:22Z"
+ "revision": "3a907f965fc16db5f7787e18d4434bbe46d47f6e",
+ "revisionTime": "2019-03-04T06:08:05Z"
},
{
"checksumSHA1": "mPNraL2edpk/2FYq26rSXfMHbJg=",