mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjusting startup logging
This commit is contained in:
parent
bb92fd1db0
commit
1f030af06f
|
@ -23,14 +23,13 @@ var boltdbBucket = []byte("weed")
|
||||||
|
|
||||||
var NotFound = errors.New("not found")
|
var NotFound = errors.New("not found")
|
||||||
|
|
||||||
// TODO avoid using btree to count deletions.
|
|
||||||
func NewBoltDbNeedleMap(dbFileName string, indexFile *os.File) (m *BoltDbNeedleMap, err error) {
|
func NewBoltDbNeedleMap(dbFileName string, indexFile *os.File) (m *BoltDbNeedleMap, err error) {
|
||||||
m = &BoltDbNeedleMap{dbFileName: dbFileName}
|
m = &BoltDbNeedleMap{dbFileName: dbFileName}
|
||||||
m.indexFile = indexFile
|
m.indexFile = indexFile
|
||||||
if !isBoltDbFresh(dbFileName, indexFile) {
|
if !isBoltDbFresh(dbFileName, indexFile) {
|
||||||
glog.V(1).Infof("Start to Generate %s from %s", dbFileName, indexFile.Name())
|
glog.V(0).Infof("Start to Generate %s from %s", dbFileName, indexFile.Name())
|
||||||
generateBoltDbFile(dbFileName, indexFile)
|
generateBoltDbFile(dbFileName, indexFile)
|
||||||
glog.V(1).Infof("Finished Generating %s from %s", dbFileName, indexFile.Name())
|
glog.V(0).Infof("Finished Generating %s from %s", dbFileName, indexFile.Name())
|
||||||
}
|
}
|
||||||
glog.V(1).Infof("Opening %s...", dbFileName)
|
glog.V(1).Infof("Opening %s...", dbFileName)
|
||||||
if m.db, err = bolt.Open(dbFileName, 0644, nil); err != nil {
|
if m.db, err = bolt.Open(dbFileName, 0644, nil); err != nil {
|
||||||
|
|
|
@ -18,14 +18,13 @@ type LevelDbNeedleMap struct {
|
||||||
baseNeedleMapper
|
baseNeedleMapper
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO avoid using btree to count deletions.
|
|
||||||
func NewLevelDbNeedleMap(dbFileName string, indexFile *os.File) (m *LevelDbNeedleMap, err error) {
|
func NewLevelDbNeedleMap(dbFileName string, indexFile *os.File) (m *LevelDbNeedleMap, err error) {
|
||||||
m = &LevelDbNeedleMap{dbFileName: dbFileName}
|
m = &LevelDbNeedleMap{dbFileName: dbFileName}
|
||||||
m.indexFile = indexFile
|
m.indexFile = indexFile
|
||||||
if !isLevelDbFresh(dbFileName, indexFile) {
|
if !isLevelDbFresh(dbFileName, indexFile) {
|
||||||
glog.V(1).Infof("Start to Generate %s from %s", dbFileName, indexFile.Name())
|
glog.V(0).Infof("Start to Generate %s from %s", dbFileName, indexFile.Name())
|
||||||
generateLevelDbFile(dbFileName, indexFile)
|
generateLevelDbFile(dbFileName, indexFile)
|
||||||
glog.V(1).Infof("Finished Generating %s from %s", dbFileName, indexFile.Name())
|
glog.V(0).Infof("Finished Generating %s from %s", dbFileName, indexFile.Name())
|
||||||
}
|
}
|
||||||
glog.V(1).Infof("Opening %s...", dbFileName)
|
glog.V(1).Infof("Opening %s...", dbFileName)
|
||||||
if m.db, err = leveldb.OpenFile(dbFileName, nil); err != nil {
|
if m.db, err = leveldb.OpenFile(dbFileName, nil); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue