Commit d30cd186 authored by Kirill Smelkov's avatar Kirill Smelkov

fixup! go/neo/*: Sync with NEO/py on changes to make the number of replicas modifiable at runtime

NEO/py no longer writes config.partition at all. This way sqlite backend
fails to open any database:

    xtesting.go:453: start neo/go /tmp/neo375346404/1: /tmp/neo375346404/1.sqlite: NEO/go POC: not ready to handle: sqlite:///tmp/neo375346404/1.sqlite: config: partitions: not found
parent 79ae59e6
......@@ -72,7 +72,7 @@ const schemaVersion = 3
// table "config" stores configuration parameters which affect the persistent data.
//
// XXX
// (name, nid, partitions, ptid, replicas, version, zodb=pickle...)
// (name, nid, ptid, replicas, version, zodb=pickle...)
const config = `
name TEXT NOT NULL PRIMARY KEY,
value TEXT
......@@ -528,7 +528,6 @@ func Open(dburl string) (_ *Backend, err error) {
checkConfig("version", schemaVersion)
checkConfig("nid", int(proto.UUID(proto.STORAGE, 1)))
checkConfig("partitions", 1)
checkConfig("replicas", 0) // XXX neo/py uses nreplicas as 1 + n(replica)
err = errv.Err()
......@@ -538,7 +537,6 @@ func Open(dburl string) (_ *Backend, err error) {
// config("version")
// config("nid")
// config("partitions")
// config("replicas")
// config("name")
// config("ptid")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment