This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db1.* - initial database after creation | |
db2.* - after compaction | |
db3.* - dropped CURRENT file, after recover, some keys lost | |
db4.* - after recover without compaction, all keys present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"github.com/syndtr/goleveldb/leveldb" | |
"github.com/syndtr/goleveldb/leveldb/storage" | |
"log" | |
) | |
func main() { | |
stor, err := storage.OpenFile("/Users/smira/.aptly/db/") |
NewerOlder