diff options
author | Jakob Borg <jakob@kastelo.net> | 2018-10-11 12:09:44 +0200 |
---|---|---|
committer | Simon Frei <freisim93@gmail.com> | 2018-10-11 12:09:44 +0200 |
commit | 3bc918ff7841838f067720171d39366d34760da6 (patch) | |
tree | 7c2a1738bdc83f03a06a6c1d7340223e786c6fe1 /lib/db/keyer.go | |
parent | 3e50edf46f0b3905659cebff370ba088835c80e0 (diff) |
lib/db: Properly remove FileInfos when dropping folder (#5260)v0.14.52-rc.3v0.14.52
Diffstat (limited to 'lib/db/keyer.go')
-rw-r--r-- | lib/db/keyer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/db/keyer.go b/lib/db/keyer.go index ff3ce603f0..b8f9b523c1 100644 --- a/lib/db/keyer.go +++ b/lib/db/keyer.go @@ -82,8 +82,8 @@ func newDefaultKeyer(folderIdx, deviceIdx *smallIndex) defaultKeyer { type deviceFileKey []byte -func (k deviceFileKey) WithoutName() []byte { - return k[:keyPrefixLen+keyFolderLen+keyDeviceLen] +func (k deviceFileKey) WithoutNameAndDevice() []byte { + return k[:keyPrefixLen+keyFolderLen] } func (k defaultKeyer) GenerateDeviceFileKey(key, folder, device, name []byte) deviceFileKey { |