[server] Use forked cdb
library (which works in multi-threaded scenarios)
This commit is contained in:
parent
c6512da307
commit
0ddbf320a7
2 changed files with 6 additions and 3 deletions
|
@ -16,7 +16,8 @@ import "path/filepath"
|
||||||
import "os"
|
import "os"
|
||||||
import "sort"
|
import "sort"
|
||||||
|
|
||||||
import "github.com/colinmarc/cdb"
|
// import "github.com/colinmarc/cdb"
|
||||||
|
import cdb "github.com/cipriancraciun/go-cdb-lib"
|
||||||
|
|
||||||
import . "../lib"
|
import . "../lib"
|
||||||
|
|
||||||
|
|
|
@ -14,12 +14,14 @@ import "net/url"
|
||||||
import "os"
|
import "os"
|
||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
import "github.com/colinmarc/cdb"
|
// import "github.com/colinmarc/cdb"
|
||||||
|
import cdb "github.com/cipriancraciun/go-cdb-lib"
|
||||||
|
|
||||||
import . "../lib"
|
import . "../lib"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
type server struct {
|
type server struct {
|
||||||
cdbReader *cdb.CDB
|
cdbReader *cdb.CDB
|
||||||
debug bool
|
debug bool
|
||||||
|
@ -264,7 +266,7 @@ func main_0 () (error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var _cdbReader *cdb.CDB
|
var _cdbReader *cdb.CDB
|
||||||
if _cdbReader_0, _error := cdb.New (_cdbFile, nil); _error == nil {
|
if _cdbReader_0, _error := cdb.NewWithHasher (_cdbFile, nil); _error == nil {
|
||||||
_cdbReader = _cdbReader_0
|
_cdbReader = _cdbReader_0
|
||||||
} else {
|
} else {
|
||||||
AbortError (_error, "[85234ba0] failed opening archive!")
|
AbortError (_error, "[85234ba0] failed opening archive!")
|
||||||
|
|
Loading…
Reference in a new issue