deal with database files copied between machines and backup restoration
Bug #999574 reported by
Eric Casteleijn
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
U1DB |
Fix Released
|
High
|
Eric Casteleijn | ||
u1db servers |
Invalid
|
Undecided
|
John O'Brien |
Bug Description
Replica ids need to be globally unique. When users copy database files between machines, things can break. We need to investigate whether we can and want to prevent this by identifying the machine the database is on, and including this information in the replica id, and verify it at runtime.
Related branches
lp:~jameinel/u1db/transaction_ids_999574
- Eric Casteleijn (community): Approve
-
Diff: 564 lines (+114/-64)11 files modifiedinclude/u1db/u1db.h (+2/-0)
include/u1db/u1db_internal.h (+1/-1)
src/u1db.c (+35/-14)
u1db/backends/__init__.py (+3/-0)
u1db/backends/dbschema.sql (+4/-2)
u1db/backends/inmemory.py (+3/-2)
u1db/backends/sqlite_backend.py (+8/-6)
u1db/tests/__init__.py (+16/-0)
u1db/tests/c_backend_wrapper.pyx (+15/-4)
u1db/tests/test_backends.py (+2/-3)
u1db/tests/test_sync.py (+25/-32)
Changed in u1db: | |
importance: | Undecided → High |
status: | New → Confirmed |
milestone: | none → pre-release |
Changed in u1db: | |
status: | Confirmed → Triaged |
Changed in u1db: | |
assignee: | nobody → Eric Casteleijn (thisfred) |
Changed in u1db-servers: | |
assignee: | nobody → Eric Casteleijn (thisfred) |
Changed in u1db-servers: | |
status: | New → Confirmed |
Changed in u1db: | |
status: | Triaged → In Progress |
Changed in u1db: | |
status: | In Progress → Fix Committed |
Changed in u1db: | |
milestone: | pre-release → 0.0.3 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
use ~/.u1db/databases to store the replica uids so you can move files around?