TypeError: Cannot read property 'userKey' of undefined
heineiuo opened this issue · 0 comments
heineiuo commented
TypeError: Cannot read property 'userKey' of undefined
1048 | let level = 0
1049 | if ((await status.ok()) && meta.fileSize > 0) {
> 1050 | const minUserKey = meta.smallest.userKey
| ^
1051 | const maxUserKey = meta.largest.userKey
1052 | if (!!base) {
1053 | level = base.pickLevelForMemTableOutput(minUserKey, maxUserKey)
at Database.userKey [as writeLevel0Table] (src/Database.ts:1050:40)
at Database.compactMemTable (src/Database.ts:982:21)
at Database.backgroundCompaction (src/Database.ts:727:7)
at Database.backgroundCall (src/Database.ts:713:5)
at Database.maybeScheduleCompaction (src/Database.ts:707:7)
at Database.makeRoomForWrite (src/Database.ts:674:9)
at Database.write (src/Database.ts:597:20)
at Database.manualCompactMemTable (src/Database.ts:1232:5)
at Database.compactRange (src/Database.ts:1166:5)